diff options
author | Yi Kong <yikong@google.com> | 2023-06-06 16:17:58 +0800 |
---|---|---|
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | 2023-06-06 17:19:50 +0000 |
commit | 9825a6c7f8a246cb9eb84a553067e68c972d8909 (patch) | |
tree | b7acb2b7a0eace09bac1f0658baccab80a136ff9 | |
parent | 98f13dd1a0638e5fc83ee92f6c88d6905cca1366 (diff) | |
download | soong-9825a6c7f8a246cb9eb84a553067e68c972d8909.tar.gz |
afdo: Remove -fprofile-sample-accurate flag
-fprofile-sample-accurate allows the compiler to de-optimize cold code
paths according to the profile. However we have a number of micro-
benchmarks that tests these paths and we often trigger regression
reports from those benchmarks.
Turning off the flag mitigates the issue at a cost of ~2MB increase in
system image size. But the more deterministic codegen could reduce the
differential OTA size.
Test: presubmit
Bug: 283235002
(cherry picked from https://android-review.googlesource.com/q/commit:febf8b9bdf40b086a50930901a7ccfaaa628bcba)
Merged-In: I1016f573f21a60223a97c64f5818f0e7e66e41e3
Change-Id: I1016f573f21a60223a97c64f5818f0e7e66e41e3
-rw-r--r-- | cc/afdo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/afdo.go b/cc/afdo.go index 49f69873c..137ea97fe 100644 --- a/cc/afdo.go +++ b/cc/afdo.go @@ -34,7 +34,7 @@ var ( var afdoProfileProjectsConfigKey = android.NewOnceKey("AfdoProfileProjects") -const afdoCFlagsFormat = "-fprofile-sample-accurate -fprofile-sample-use=%s" +const afdoCFlagsFormat = "-fprofile-sample-use=%s" func recordMissingAfdoProfileFile(ctx android.BaseModuleContext, missing string) { getNamedMapForConfig(ctx.Config(), modulesMissingProfileFileKey).Store(missing, true) |