summaryrefslogtreecommitdiff
path: root/compiler/optimizing/scheduler_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2020-06-08 10:26:06 +0100
committer Vladimir Marko <vmarko@google.com> 2020-06-08 12:41:04 +0000
commitef898425c975f150caaed077ca204fa86b951e7f (patch)
tree1ad038b90bb860fe1b9a20872b990c7918fcd1e1 /compiler/optimizing/scheduler_test.cc
parentf7290cac4af6a981d98122af1a6d48b0e80da574 (diff)
Run LSA as a part of the LSE pass.
Make LSA a helper class, not an optimization pass. Move all its allocations to ScopedArenaAllocator to reduce the peak memory usage a little bit. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: I7fc634abe732d22c99005921ffecac5207bcf05f
Diffstat (limited to 'compiler/optimizing/scheduler_test.cc')
-rw-r--r--compiler/optimizing/scheduler_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/scheduler_test.cc b/compiler/optimizing/scheduler_test.cc
index b5ec93ea6c..94f1599e62 100644
--- a/compiler/optimizing/scheduler_test.cc
+++ b/compiler/optimizing/scheduler_test.cc
@@ -273,7 +273,7 @@ class SchedulerTest : public OptimizingUnitTest {
entry->AddInstruction(instr);
}
- HeapLocationCollector heap_location_collector(graph_);
+ HeapLocationCollector heap_location_collector(graph_, GetScopedAllocator());
heap_location_collector.VisitBasicBlock(entry);
heap_location_collector.BuildAliasingMatrix();
TestSchedulingGraph scheduling_graph(GetScopedAllocator(), &heap_location_collector);