diff options
| author | 2016-10-05 20:29:58 +0000 | |
|---|---|---|
| committer | 2016-10-05 20:29:58 +0000 | |
| commit | 78c6fefdb9008cb6dc9f0014d4616b457009c6c8 (patch) | |
| tree | aecbe9fe31d94ffbad4166c92b8fe81cd4219b0d /compiler/optimizing/loop_optimization_test.cc | |
| parent | 7638651be29f117ef651841fbb9ffda76921ae1b (diff) | |
| parent | 9620230700d4b451097c2163faa70627c9d8088a (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.cc | 6 |
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. */ |