From f5307a31f5b67f6184cbb7e8b7fab61be3725fce Mon Sep 17 00:00:00 2001 From: Santiago Aboy Solanes Date: Mon, 30 Oct 2023 10:12:01 +0000 Subject: 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 --- compiler/driver/compiler_options.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'compiler/driver/compiler_options.h') 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_; -- cgit v1.2.3-59-g8ed1b