Merge "Add additional flag required for Flow Sensitive AFDO" into main am: c1545e8dbf
am: 4bc1562a33
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2788714 Change-Id: Ie084d857aa20ef1a0f321433a3ea60d8c3370ddd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -84,7 +84,10 @@ func (afdo *afdo) flags(ctx ModuleContext, flags Flags) Flags {
|
|||||||
// 3. Make the profile searchable by the build system. So it's used the next time the binary
|
// 3. Make the profile searchable by the build system. So it's used the next time the binary
|
||||||
// is built.
|
// is built.
|
||||||
flags.Local.CFlags = append([]string{"-funique-internal-linkage-names"}, flags.Local.CFlags...)
|
flags.Local.CFlags = append([]string{"-funique-internal-linkage-names"}, flags.Local.CFlags...)
|
||||||
|
// Flags for Flow Sensitive AutoFDO
|
||||||
flags.Local.CFlags = append([]string{"-mllvm", "-enable-fs-discriminator=true"}, flags.Local.CFlags...)
|
flags.Local.CFlags = append([]string{"-mllvm", "-enable-fs-discriminator=true"}, flags.Local.CFlags...)
|
||||||
|
// TODO(b/266595187): Remove the following feature once it is enabled in LLVM by default.
|
||||||
|
flags.Local.CFlags = append([]string{"-mllvm", "-improved-fs-discriminator=true"}, flags.Local.CFlags...)
|
||||||
}
|
}
|
||||||
if path := afdo.Properties.FdoProfilePath; path != nil {
|
if path := afdo.Properties.FdoProfilePath; path != nil {
|
||||||
// The flags are prepended to allow overriding.
|
// The flags are prepended to allow overriding.
|
||||||
|
Reference in New Issue
Block a user