From e6e5f771a63f2024e00188175b69ddfe5a4a1656 Mon Sep 17 00:00:00 2001 From: Santiago Aboy Solanes Date: Tue, 11 Feb 2025 17:27:09 +0000 Subject: Use HInstructionIteratorHandleChanges again in RTP In http://r.android.com/2952876 we changed the RTP iterator to HInstructionIterator, but we want the HandleChanges one. Test: art/test/testrunner/testrunner.py --host --64 -b --optimizing Change-Id: I1e9e9cc84d45aa34c24a805f16798e86fd123fc3 --- compiler/optimizing/nodes.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'compiler/optimizing/nodes.cc') diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index 8044a86338..6be474a8c9 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -1739,6 +1739,13 @@ void HGraphVisitor::VisitNonPhiInstructions(HBasicBlock* block) { } } +void HGraphVisitor::VisitNonPhiInstructionsHandleChanges(HBasicBlock* block) { + for (HInstructionIteratorHandleChanges it(block->GetInstructions()); !it.Done(); it.Advance()) { + DCHECK(!it.Current()->IsPhi()); + it.Current()->Accept(this); + } +} + HConstant* HTypeConversion::TryStaticEvaluation() const { return TryStaticEvaluation(GetInput()); } HConstant* HTypeConversion::TryStaticEvaluation(HInstruction* input) const { -- cgit v1.2.3-59-g8ed1b