summaryrefslogtreecommitdiff
path: root/compiler/optimizing/profiling_info_builder.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-02-08 09:49:48 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2024-02-09 09:05:18 +0000
commitced2fc97ec95f2924059544f13d6ff353973d552 (patch)
tree7131429c7cd6b9a18ef255ce5d7a160ac274c371 /compiler/optimizing/profiling_info_builder.cc
parentcea2f596f98b79fafaded1c36c98aa3fa04d5147 (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/profiling_info_builder.cc')
-rw-r--r--compiler/optimizing/profiling_info_builder.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/optimizing/profiling_info_builder.cc b/compiler/optimizing/profiling_info_builder.cc
index f6cf676813..7faf2bf5be 100644
--- a/compiler/optimizing/profiling_info_builder.cc
+++ b/compiler/optimizing/profiling_info_builder.cc
@@ -33,10 +33,7 @@ void ProfilingInfoBuilder::Run() {
// Order does not matter.
for (HBasicBlock* block : GetGraph()->GetReversePostOrder()) {
// No need to visit the phis.
- for (HInstructionIteratorHandleChanges inst_it(block->GetInstructions()); !inst_it.Done();
- inst_it.Advance()) {
- inst_it.Current()->Accept(this);
- }
+ VisitNonPhiInstructions(block);
}
ScopedObjectAccess soa(Thread::Current());