# HG changeset patch # User Thomas Wuerthinger # Date 1433517110 -7200 # Node ID 30b4de402a5881b177d8d0abb4c1140d67a6e4b8 # Parent ce6b8ee2c6f25cd04a46c0c639fa60873c5c6a06 Fix a regression caused by the implicit null check changes. diff -r ce6b8ee2c6f2 -r 30b4de402a58 graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/GuardLoweringPhase.java --- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/GuardLoweringPhase.java Thu Jun 04 16:15:14 2015 +0200 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/GuardLoweringPhase.java Fri Jun 05 17:11:50 2015 +0200 @@ -119,12 +119,11 @@ if (guard != null && isImplicitNullCheck(access.accessLocation())) { if (object instanceof PiNode) { PiNode piNode = (PiNode) object; - if (access.object() == object) { - access.asNode().replaceFirstInput(object, piNode.getOriginalNode()); - } - if (!(piNode.getGuard() instanceof GuardNode)) { - return; - } + assert piNode.getGuard() instanceof GuardNode; + assert access.object() == object; + access.asNode().replaceFirstInput(object, piNode.getOriginalNode()); + } else { + assert guard instanceof GuardNode; } metricImplicitNullCheck.increment(); access.setGuard(null); @@ -154,7 +153,7 @@ if (condition.hasNoUsages()) { GraphUtil.killWithUnusedFloatingInputs(condition); } - nullGuarded.remove(fixedAccess.object()); + nullGuarded.remove(object); } }