diff options
author | 2025-02-24 14:03:10 +0000 | |
---|---|---|
committer | 2025-02-28 00:19:19 -0800 | |
commit | a04fda337fa7bf06a2104a1a6c4dce04af110c18 (patch) | |
tree | f85e69b8977f5b2384d7bc599fe42b06920fc5b4 /compiler/optimizing | |
parent | 22cfc7f2de1f4de1616e2b2bca30e71a5b1d2748 (diff) |
Speed up `SsaRedundantPhiElimination`.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 331194861
Change-Id: I649107659bf7a741f0eee7443128c551a9deccad
Diffstat (limited to 'compiler/optimizing')
-rw-r--r-- | compiler/optimizing/ssa_phi_elimination.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/optimizing/ssa_phi_elimination.cc b/compiler/optimizing/ssa_phi_elimination.cc index 0796acc687..b2a3846dc4 100644 --- a/compiler/optimizing/ssa_phi_elimination.cc +++ b/compiler/optimizing/ssa_phi_elimination.cc @@ -139,10 +139,8 @@ bool SsaRedundantPhiElimination::Run() { } } - ArenaBitVector visited_phis_in_cycle(&allocator, - graph_->GetCurrentInstructionId(), - /* expandable= */ false, - kArenaAllocSsaPhiElimination); + BitVectorView<size_t> visited_phis_in_cycle = ArenaBitVector::CreateFixedSize( + &allocator, graph_->GetCurrentInstructionId(), kArenaAllocSsaPhiElimination); ScopedArenaVector<HPhi*> cycle_worklist(allocator.Adapter(kArenaAllocSsaPhiElimination)); while (!worklist.empty()) { |