From fa6b93c4b69e6d7ddfa2a4ed0aff01b0608c5a3a Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Tue, 15 Sep 2015 10:15:55 +0100 Subject: Optimizing: Tag arena allocations in HGraph. Replace GrowableArray with ArenaVector in HGraph and related classes HEnvironment, HLoopInformation, HInvoke and HPhi, and tag allocations with new arena allocation types. Change-Id: I3d79897af405b9a1a5b98bfc372e70fe0b3bc40d --- compiler/optimizing/optimizing_unit_test.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'compiler/optimizing/optimizing_unit_test.h') 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); -- cgit v1.2.3-59-g8ed1b