diff options
| author | 2023-03-22 17:09:50 +0900 | |
|---|---|---|
| committer | 2023-03-22 17:11:43 +0900 | |
| commit | 3ccc52fb0bf11d6cfb104a80b1bdbc81bac0e37d (patch) | |
| tree | a0357f9e7a80b96bb0a7663c273034e5b9efc09d | |
| parent | e347e926c877b021e307be4aa140a17842c22019 (diff) | |
Opt libhwui out of -fprofile-sample-accurate
Some hwui code paths might be infrequently executed but critical to the
UI latency. Opt out of -fprofile-sample-accurate so that the compiler
won't de-optimise cold code paths.
Test: presubmit
Bug: 273415627
Change-Id: Ieaf34fc0d2e75aa54c46fec0fde38cee42a5c3c3
| -rw-r--r-- | libs/hwui/Android.bp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/Android.bp b/libs/hwui/Android.bp index 979a660d497f..d391be665371 100644 --- a/libs/hwui/Android.bp +++ b/libs/hwui/Android.bp @@ -55,6 +55,10 @@ cc_defaults { // GCC false-positives on this warning, and since we -Werror that's // a problem "-Wno-free-nonheap-object", + + // Do not de-optimise cold code paths in AFDO. + // Some code paths might be infrequently executed but critical to latency. + "-fno-profile-sample-accurate", ], include_dirs: [ |