# HG changeset patch # User Bernhard Urban # Date 1378129854 -7200 # Node ID d90885b101c3aa6c7af5aad01b2125c267c2c0cd # Parent a116fb4875a64f55af5edb28a63b9fadb17b8bf4 ifCanonTest: unconnect replaced local nodes from frame state, to match expected graph diff -r a116fb4875a6 -r d90885b101c3 graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/IfCanonicalizerTest.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/IfCanonicalizerTest.java Fri Aug 30 15:38:14 2013 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/IfCanonicalizerTest.java Mon Sep 02 15:50:54 2013 +0200 @@ -145,6 +145,9 @@ } Debug.dump(graph, "Graph"); new CanonicalizerPhase.Instance(runtime(), new Assumptions(false), true).apply(graph); + for (FrameState fs : local.usages().filter(FrameState.class).snapshot()) { + fs.replaceFirstInput(local, null); + } StructuredGraph referenceGraph = parse(REFERENCE_SNIPPET); assertEquals(referenceGraph, graph); }