summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimizing_unit_test.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2015-09-16 14:11:43 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-09-16 14:11:43 +0000
commitaef880c4b872ccf1a63a3c563cb056ae117fc9c8 (patch)
tree8bd98e40d6d3e38287519b5970ea451fbd9b26a1 /compiler/optimizing/optimizing_unit_test.h
parentd226ad6acaf65a94133a3c537221ea5c7ac5b998 (diff)
parentfa6b93c4b69e6d7ddfa2a4ed0aff01b0608c5a3a (diff)
Merge "Optimizing: Tag arena allocations in HGraph."
Diffstat (limited to 'compiler/optimizing/optimizing_unit_test.h')
-rw-r--r--compiler/optimizing/optimizing_unit_test.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/optimizing/optimizing_unit_test.h b/compiler/optimizing/optimizing_unit_test.h
index 86c22ed154..350f0b14ab 100644
--- a/compiler/optimizing/optimizing_unit_test.h
+++ b/compiler/optimizing/optimizing_unit_test.h
@@ -60,10 +60,8 @@ LiveInterval* BuildInterval(const size_t ranges[][2],
}
void RemoveSuspendChecks(HGraph* graph) {
- for (size_t i = 0, e = graph->GetBlocks().Size(); i < e; ++i) {
- for (HInstructionIterator it(graph->GetBlocks().Get(i)->GetInstructions());
- !it.Done();
- it.Advance()) {
+ for (HBasicBlock* block : graph->GetBlocks()) {
+ for (HInstructionIterator it(block->GetInstructions()); !it.Done(); it.Advance()) {
HInstruction* current = it.Current();
if (current->IsSuspendCheck()) {
current->GetBlock()->RemoveInstruction(current);