summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2024-02-13 17:56:36 +0000
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-02-14 11:30:43 +0000
commitded8a28a221cdc2f1fb34409ae2fa9185491e9a3 (patch)
treeed3981dd56992d0e36d725e033e539a6b3e563f4 /compiler/driver/compiler_options.h
parent3a0f1f437f620e5a894a2898ec5d2f941710131a (diff)
Increase inlining threshold for baseline.
Gives better results when scrolling. Reduces jank on compose view scrolling for 4 iterations: - For Go Mokey: - Before: ~937 frames drawn / ~5.52% janky frames - After: ~1014 frames drawn / ~4.54% janky frames - For Pixel 8 pro: - Before: ~2446 frames drawn / ~0.67% janky frames - After: ~2449 frames drawn / ~0.51% janky frames Test: test.py Bug: 313040662 Change-Id: I21492e103a9dc4658aa89dfb12b86eb30680564f
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r--compiler/driver/compiler_options.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h
index eaf9cc2fdb..6b3e26fc70 100644
--- a/compiler/driver/compiler_options.h
+++ b/compiler/driver/compiler_options.h
@@ -69,7 +69,7 @@ class CompilerOptions final {
static constexpr size_t kUnsetInlineMaxCodeUnits = -1;
// We set a lower inlining threshold for baseline to reduce code size and compilation time. This
// cannot be changed via flags.
- static constexpr size_t kBaselineInlineMaxCodeUnits = 8;
+ static constexpr size_t kBaselineInlineMaxCodeUnits = 14;
enum class CompilerType : uint8_t {
kAotCompiler, // AOT compiler.