src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/PhiCreationTests.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/PhiCreationTests.java	Fri Jul  7 09:29:36 2017
--- new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/PhiCreationTests.java	Fri Jul  7 09:29:36 2017

*** 20,36 **** --- 20,35 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package org.graalvm.compiler.core.test; ! import org.junit.Assert; import org.junit.Test; import org.graalvm.compiler.debug.Debug; ! import org.graalvm.compiler.debug.DebugContext; import org.graalvm.compiler.nodes.StructuredGraph; import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions; import org.graalvm.compiler.nodes.ValuePhiNode; + import org.junit.Assert; + import org.junit.Test; /** * In the following tests, the correct removal of redundant phis during graph building is tested. */ public class PhiCreationTests extends GraalCompilerTest {
*** 68,78 **** --- 67,78 ---- } @Test public void test3() { StructuredGraph graph = parseEager("test3Snippet", AllowAssumptions.YES); ! Debug.dump(Debug.BASIC_LEVEL, graph, "Graph"); ! DebugContext debug = graph.getDebug(); + debug.dump(DebugContext.BASIC_LEVEL, graph, "Graph"); Assert.assertFalse(graph.getNodes().filter(ValuePhiNode.class).iterator().hasNext()); } public static int test3Snippet(int a) { while (a > 1) {
*** 84,94 **** --- 84,95 ---- } @Test public void test4() { StructuredGraph graph = parseEager("test4Snippet", AllowAssumptions.YES); ! Debug.dump(Debug.BASIC_LEVEL, graph, "Graph"); ! DebugContext debug = graph.getDebug(); + debug.dump(DebugContext.BASIC_LEVEL, graph, "Graph"); Assert.assertFalse(graph.getNodes().filter(ValuePhiNode.class).iterator().hasNext()); } public static int test4Snippet(int a) { int b = 5;

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.test/src/org/graalvm/compiler/core/test/PhiCreationTests.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File