# HG changeset patch # User Thomas Wuerthinger # Date 1379451716 -7200 # Node ID 657079bf617414e8db1f114932fc94302b53ab3b # Parent 7a987d8147c25e39b00abec512d6dadcc057aa99 Create GuardNode instead of FixedGuardNode when lowering GuardingPiNode. diff -r 7a987d8147c2 -r 657079bf6174 graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardingPiNode.java --- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardingPiNode.java Tue Sep 17 18:05:15 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardingPiNode.java Tue Sep 17 23:01:56 2013 +0200 @@ -80,10 +80,9 @@ if (graph().getGuardsPhase() == StructuredGraph.GuardsStage.FIXED_DEOPTS) { throw new GraalInternalError("Cannot create guards in after-guard lowering"); } - FixedGuardNode guard = graph().add(new FixedGuardNode(condition, reason, action, negated)); + GuardingNode guard = tool.createGuard(condition, reason, action, negated); PiNode pi = graph().unique(new PiNode(object, stamp(), guard)); - replaceAtUsages(pi); - graph().replaceFixedWithFixed(this, guard); + graph().replaceFixedWithFloating(this, pi); } @Override