changeset 12421:dc4b09c9d68e

When FixedGuardNode is canonicalized away, it should not be replaced with the previous begin
author Gilles Duboscq <duboscq@ssw.jku.at>
date Mon, 14 Oct 2013 17:49:25 +0200
parents 28d80a9260cd
children d837abecd503
files graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/FixedGuardNode.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/FixedGuardNode.java	Mon Oct 14 16:40:51 2013 +0200
+++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/FixedGuardNode.java	Mon Oct 14 17:49:25 2013 +0200
@@ -99,8 +99,9 @@
                 DeoptimizeNode deopt = graph().add(new DeoptimizeNode(DeoptimizationAction.InvalidateRecompile, reason));
                 deopt.setDeoptimizationState(getDeoptimizationState());
                 setNext(deopt);
+            } else {
+                this.replaceAtUsages(null);
             }
-            this.replaceAtUsages(BeginNode.prevBegin(this));
             graph().removeFixed(this);
         }
     }