src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/TypeSystemTest.java
--- a/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/TypeSystemTest.java Thu Jun 27 03:10:52 2019 +0200
+++ b/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/TypeSystemTest.java Thu Jun 27 03:33:44 2019 +0200
@@ -44,7 +44,6 @@
import org.graalvm.compiler.phases.common.CanonicalizerPhase;
import org.graalvm.compiler.phases.common.ConditionalEliminationPhase;
import org.graalvm.compiler.phases.schedule.SchedulePhase;
-import org.graalvm.compiler.phases.tiers.PhaseContext;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
@@ -188,14 +187,14 @@
* tail-duplication gets activated thus resulting in a graph with more nodes than the
* reference graph.
*/
- new ConditionalEliminationPhase(false).apply(graph, new PhaseContext(getProviders()));
- new CanonicalizerPhase().apply(graph, new PhaseContext(getProviders()));
+ new ConditionalEliminationPhase(false).apply(graph, getProviders());
+ new CanonicalizerPhase().apply(graph, getProviders());
// a second canonicalizer is needed to process nested MaterializeNodes
- new CanonicalizerPhase().apply(graph, new PhaseContext(getProviders()));
+ new CanonicalizerPhase().apply(graph, getProviders());
StructuredGraph referenceGraph = parseEager(referenceSnippet, AllowAssumptions.NO);
- new ConditionalEliminationPhase(false).apply(referenceGraph, new PhaseContext(getProviders()));
- new CanonicalizerPhase().apply(referenceGraph, new PhaseContext(getProviders()));
- new CanonicalizerPhase().apply(referenceGraph, new PhaseContext(getProviders()));
+ new ConditionalEliminationPhase(false).apply(referenceGraph, getProviders());
+ new CanonicalizerPhase().apply(referenceGraph, getProviders());
+ new CanonicalizerPhase().apply(referenceGraph, getProviders());
assertEquals(referenceGraph, graph);
}
@@ -245,8 +244,8 @@
private <T extends Node> void testHelper(String snippet, Class<T> clazz) {
StructuredGraph graph = parseEager(snippet, AllowAssumptions.NO);
- new CanonicalizerPhase().apply(graph, new PhaseContext(getProviders()));
- new CanonicalizerPhase().apply(graph, new PhaseContext(getProviders()));
+ new CanonicalizerPhase().apply(graph, getProviders());
+ new CanonicalizerPhase().apply(graph, getProviders());
DebugContext debug = graph.getDebug();
debug.dump(DebugContext.BASIC_LEVEL, graph, "Graph " + snippet);
Assert.assertFalse("shouldn't have nodes of type " + clazz, graph.getNodes().filter(clazz).iterator().hasNext());