diff options
author | 2023-10-30 10:12:01 +0000 | |
---|---|---|
committer | 2024-01-30 15:33:00 +0000 | |
commit | f5307a31f5b67f6184cbb7e8b7fab61be3725fce (patch) | |
tree | 01d9284e052f5d96e723989dba214588c5c5d3dc /compiler/driver/compiler_options.h | |
parent | ee4c3d633f673be1d43c959a3bc99519a376dba0 (diff) |
Allow compilation of large methods with no branches
Popular apps include such methods in their profiles. Having
the extra heuristic of skipping compilation for large methods
with no branches can be unintuitive for developers who created
those profiles.
Some apps see startup improvements with this heuristic removed.
Bug: 316617683
Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b
Change-Id: I21a8da93e89399dac0e45c3ab43a8bbedc925a44
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r-- | compiler/driver/compiler_options.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index 3064729597..5890227c36 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -62,7 +62,6 @@ class CompilerOptions final { public: // Guide heuristics to determine whether to compile method if profile data not available. static const size_t kDefaultHugeMethodThreshold = 10000; - static const size_t kDefaultLargeMethodThreshold = 600; static const bool kDefaultGenerateDebugInfo = false; static const bool kDefaultGenerateMiniDebugInfo = true; static const size_t kDefaultInlineMaxCodeUnits = 32; @@ -121,18 +120,10 @@ class CompilerOptions final { return huge_method_threshold_; } - size_t GetLargeMethodThreshold() const { - return large_method_threshold_; - } - bool IsHugeMethod(size_t num_dalvik_instructions) const { return num_dalvik_instructions > huge_method_threshold_; } - bool IsLargeMethod(size_t num_dalvik_instructions) const { - return num_dalvik_instructions > large_method_threshold_; - } - size_t GetInlineMaxCodeUnits() const { return inline_max_code_units_; } @@ -392,7 +383,6 @@ class CompilerOptions final { CompilerFilter::Filter compiler_filter_; size_t huge_method_threshold_; - size_t large_method_threshold_; size_t inline_max_code_units_; InstructionSet instruction_set_; |