Merge "Enable MLGO for register allocation" into main am: 798f5d2e7e

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2736897

Change-Id: Id211ca4c74daeeb5d7954240b8d98963e941ad09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Yi Kong 2023-09-03 06:45:49 +00:00 committed by Automerger Merge Worker
commit be007f33bf

View file

@ -140,6 +140,9 @@ var (
"-Werror=format-security",
"-nostdlibinc",
// Enable MLGO for register allocation.
"-mllvm -regalloc-enable-advisor=release",
// Emit additional debug info for AutoFDO
"-fdebug-info-for-profiling",
}
@ -167,6 +170,8 @@ var (
"-Wl,--exclude-libs,libgcc_stripped.a",
"-Wl,--exclude-libs,libunwind_llvm.a",
"-Wl,--exclude-libs,libunwind.a",
// Enable MLGO for register allocation.
"-Wl,-mllvm,-regalloc-enable-advisor=release",
}
deviceGlobalLldflags = append(deviceGlobalLdflags, commonGlobalLldflags...)