summaryrefslogtreecommitdiff
path: root/compiler/optimizing/loop_optimization_test.cc
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2016-10-05 20:29:58 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-10-05 20:29:58 +0000
commit78c6fefdb9008cb6dc9f0014d4616b457009c6c8 (patch)
treeaecbe9fe31d94ffbad4166c92b8fe81cd4219b0d /compiler/optimizing/loop_optimization_test.cc
parent7638651be29f117ef651841fbb9ffda76921ae1b (diff)
parent9620230700d4b451097c2163faa70627c9d8088a (diff)
Merge "Refactoring of graph linearization and linear order."
Diffstat (limited to 'compiler/optimizing/loop_optimization_test.cc')
-rw-r--r--compiler/optimizing/loop_optimization_test.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/optimizing/loop_optimization_test.cc b/compiler/optimizing/loop_optimization_test.cc
index 4d54afd14d..7805a69a06 100644
--- a/compiler/optimizing/loop_optimization_test.cc
+++ b/compiler/optimizing/loop_optimization_test.cc
@@ -31,7 +31,7 @@ class LoopOptimizationTest : public CommonCompilerTest {
allocator_(&pool_),
graph_(CreateGraph(&allocator_)),
iva_(new (&allocator_) HInductionVarAnalysis(graph_)),
- loop_opt_(new (&allocator_) HLoopOptimization(graph_, iva_, &allocator_)) {
+ loop_opt_(new (&allocator_) HLoopOptimization(graph_, iva_)) {
BuildGraph();
}
@@ -76,7 +76,9 @@ class LoopOptimizationTest : public CommonCompilerTest {
void PerformAnalysis() {
graph_->BuildDominatorTree();
iva_->Run();
- loop_opt_->Run();
+ // Do not release the loop hierarchy.
+ loop_opt_->loop_allocator_ = &allocator_;
+ loop_opt_->LocalRun();
}
/** Constructs string representation of computed loop hierarchy. */