summaryrefslogtreecommitdiff
path: root/compiler/optimizing/block_builder.h
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2023-10-30 10:12:01 +0000
committer Santiago Aboy Solanes <solanes@google.com> 2024-01-30 15:33:00 +0000
commitf5307a31f5b67f6184cbb7e8b7fab61be3725fce (patch)
tree01d9284e052f5d96e723989dba214588c5c5d3dc /compiler/optimizing/block_builder.h
parentee4c3d633f673be1d43c959a3bc99519a376dba0 (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/optimizing/block_builder.h')
-rw-r--r--compiler/optimizing/block_builder.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/optimizing/block_builder.h b/compiler/optimizing/block_builder.h
index 1aa9375e5a..ce1fb6f054 100644
--- a/compiler/optimizing/block_builder.h
+++ b/compiler/optimizing/block_builder.h
@@ -42,7 +42,6 @@ class HBasicBlockBuilder : public ValueObject {
// Creates basic blocks in `graph_` for compiling an intrinsic.
void BuildIntrinsic();
- size_t GetNumberOfBranches() const { return number_of_branches_; }
HBasicBlock* GetBlockAt(uint32_t dex_pc) const { return branch_targets_[dex_pc]; }
private:
@@ -79,7 +78,6 @@ class HBasicBlockBuilder : public ValueObject {
ScopedArenaAllocator* const local_allocator_;
ScopedArenaVector<HBasicBlock*> branch_targets_;
ScopedArenaVector<HBasicBlock*> throwing_blocks_;
- size_t number_of_branches_;
static constexpr size_t kDefaultNumberOfThrowingBlocks = 2u;