src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/CompareCanonicalizerTest2.java
equal
deleted
inserted
replaced
24 |
24 |
25 package org.graalvm.compiler.core.test; |
25 package org.graalvm.compiler.core.test; |
26 |
26 |
27 import org.graalvm.compiler.nodes.StructuredGraph; |
27 import org.graalvm.compiler.nodes.StructuredGraph; |
28 import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions; |
28 import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions; |
29 import org.graalvm.compiler.phases.common.CanonicalizerPhase; |
|
30 import org.junit.Test; |
29 import org.junit.Test; |
31 |
30 |
32 public class CompareCanonicalizerTest2 extends GraalCompilerTest { |
31 public class CompareCanonicalizerTest2 extends GraalCompilerTest { |
33 |
32 |
34 @SuppressWarnings("unused") private static boolean sink; |
33 @SuppressWarnings("unused") private static boolean sink; |
35 |
34 |
36 private StructuredGraph getCanonicalizedGraph(String name) { |
35 private StructuredGraph getCanonicalizedGraph(String name) { |
37 StructuredGraph graph = getRegularGraph(name); |
36 StructuredGraph graph = getRegularGraph(name); |
38 new CanonicalizerPhase().apply(graph, getProviders()); |
37 createCanonicalizerPhase().apply(graph, getProviders()); |
39 return graph; |
38 return graph; |
40 } |
39 } |
41 |
40 |
42 private StructuredGraph getRegularGraph(String name) { |
41 private StructuredGraph getRegularGraph(String name) { |
43 StructuredGraph graph = parseEager(name, AllowAssumptions.YES); |
42 StructuredGraph graph = parseEager(name, AllowAssumptions.YES); |