# HG changeset patch # User Gilles Duboscq # Date 1397742230 -7200 # Node ID a40e775ecb83a2575206c0efe738293e1eef961a # Parent 1f130000d7003d2072f5287096b90cf183360ca8 GuardedValueNode with null guard should be able canoncalize diff -r 1f130000d700 -r a40e775ecb83 graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardedValueNode.java --- 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 {