diff options
author | 2024-02-08 09:49:48 +0000 | |
---|---|---|
committer | 2024-02-09 09:05:18 +0000 | |
commit | ced2fc97ec95f2924059544f13d6ff353973d552 (patch) | |
tree | 7131429c7cd6b9a18ef255ce5d7a160ac274c371 /compiler/optimizing/write_barrier_elimination.cc | |
parent | cea2f596f98b79fafaded1c36c98aa3fa04d5147 (diff) |
Clean up `HGraphVisitor::VisitBasicBlock()`.
Skip `HPhi::Accept()` and add functions to visit only Phis
or only non-Phi instructions.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 181943478
Change-Id: Iba0690ae70f46d6a2bafa9055b2ae5167e58a2f4
Diffstat (limited to 'compiler/optimizing/write_barrier_elimination.cc')
-rw-r--r-- | compiler/optimizing/write_barrier_elimination.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/write_barrier_elimination.cc b/compiler/optimizing/write_barrier_elimination.cc index 27348cd87d..220eb78e02 100644 --- a/compiler/optimizing/write_barrier_elimination.cc +++ b/compiler/optimizing/write_barrier_elimination.cc @@ -38,7 +38,7 @@ class WBEVisitor final : public HGraphVisitor { // We clear the map to perform this optimization only in the same block. Doing it across blocks // would entail non-trivial merging of states. current_write_barriers_.clear(); - HGraphVisitor::VisitBasicBlock(block); + VisitNonPhiInstructions(block); } void VisitInstanceFieldSet(HInstanceFieldSet* instruction) override { |