src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/FloatingReadTest.java
equal
deleted
inserted
replaced
32 import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions; |
32 import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions; |
33 import org.graalvm.compiler.nodes.extended.MonitorExit; |
33 import org.graalvm.compiler.nodes.extended.MonitorExit; |
34 import org.graalvm.compiler.nodes.memory.FloatingReadNode; |
34 import org.graalvm.compiler.nodes.memory.FloatingReadNode; |
35 import org.graalvm.compiler.nodes.spi.CoreProviders; |
35 import org.graalvm.compiler.nodes.spi.CoreProviders; |
36 import org.graalvm.compiler.nodes.spi.LoweringTool; |
36 import org.graalvm.compiler.nodes.spi.LoweringTool; |
37 import org.graalvm.compiler.phases.common.CanonicalizerPhase; |
|
38 import org.graalvm.compiler.phases.common.FloatingReadPhase; |
37 import org.graalvm.compiler.phases.common.FloatingReadPhase; |
39 import org.graalvm.compiler.phases.common.LoweringPhase; |
38 import org.graalvm.compiler.phases.common.LoweringPhase; |
40 import org.junit.Assert; |
39 import org.junit.Assert; |
41 import org.junit.Test; |
40 import org.junit.Test; |
42 |
41 |
66 DebugContext debug = getDebugContext(); |
65 DebugContext debug = getDebugContext(); |
67 try (DebugContext.Scope s = debug.scope("FloatingReadTest", new DebugDumpScope(snippet))) { |
66 try (DebugContext.Scope s = debug.scope("FloatingReadTest", new DebugDumpScope(snippet))) { |
68 |
67 |
69 StructuredGraph graph = parseEager(snippet, AllowAssumptions.YES); |
68 StructuredGraph graph = parseEager(snippet, AllowAssumptions.YES); |
70 CoreProviders context = getProviders(); |
69 CoreProviders context = getProviders(); |
71 new LoweringPhase(new CanonicalizerPhase(), LoweringTool.StandardLoweringStage.HIGH_TIER).apply(graph, context); |
70 new LoweringPhase(createCanonicalizerPhase(), LoweringTool.StandardLoweringStage.HIGH_TIER).apply(graph, context); |
72 new FloatingReadPhase().apply(graph); |
71 new FloatingReadPhase().apply(graph); |
73 |
72 |
74 ReturnNode returnNode = null; |
73 ReturnNode returnNode = null; |
75 MonitorExit monitorexit = null; |
74 MonitorExit monitorexit = null; |
76 |
75 |