changeset 10893:968215f13aad

MemoryScheduleTest: fix scope for CFG dumping
author Bernhard Urban <bernhard.urban@jku.at>
date Fri, 26 Jul 2013 20:18:42 +0200
parents caa8706c6202
children af441d477a40
files graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/MemoryScheduleTest.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/MemoryScheduleTest.java	Fri Jul 26 20:18:41 2013 +0200
+++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/MemoryScheduleTest.java	Fri Jul 26 20:18:42 2013 +0200
@@ -214,11 +214,11 @@
     }
 
     private SchedulePhase getFinalSchedule(final String snippet, final TestMode mode) {
-        return Debug.scope("FloatingReadTest", new DebugDumpScope(snippet), new Callable<SchedulePhase>() {
+        final StructuredGraph graph = parse(snippet);
+        return Debug.scope("FloatingReadTest", graph, new Callable<SchedulePhase>() {
 
             @Override
             public SchedulePhase call() throws Exception {
-                StructuredGraph graph = parse(snippet);
                 Assumptions assumptions = new Assumptions(false);
                 HighTierContext context = new HighTierContext(runtime(), assumptions, replacements);
                 new CanonicalizerPhase(true).apply(graph, context);