diff options
author | 2025-02-11 17:27:09 +0000 | |
---|---|---|
committer | 2025-02-13 03:19:37 -0800 | |
commit | e6e5f771a63f2024e00188175b69ddfe5a4a1656 (patch) | |
tree | 5d594e9c391691d57750bf616b3fab280c4eecdd /compiler/optimizing/nodes.cc | |
parent | 9a36de50228fdff9ed53e1dd9545eb446ed09943 (diff) |
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
Diffstat (limited to 'compiler/optimizing/nodes.cc')
-rw-r--r-- | compiler/optimizing/nodes.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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 { |