changeset 15203:a40e775ecb83

GuardedValueNode with null guard should be able canoncalize
author Gilles Duboscq <duboscq@ssw.jku.at>
date Thu, 17 Apr 2014 15:43:50 +0200
parents 1f130000d700
children 4d19ee79fcee
files graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardedValueNode.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardedValueNode.java	Thu Apr 17 13:21:58 2014 +0200
+++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardedValueNode.java	Thu Apr 17 15:43:50 2014 +0200
@@ -78,7 +78,7 @@
 
     @Override
     public Node canonical(CanonicalizerTool tool) {
-        if (getGuard() == graph().start()) {
+        if (getGuard() == graph().start() || getGuard() == null) {
             if (stamp().equals(object().stamp())) {
                 return object();
             } else {