# HG changeset patch # User Thomas Wuerthinger # Date 1423196579 -3600 # Node ID c154b12465d247ffa25ee84077038b6568eae361 # Parent 396ca3a22ee870f116b2744667a079ca285d2739 Fix method IntegerBelowNode#findSynonym. diff -r 396ca3a22ee8 -r c154b12465d2 graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/IntegerBelowNode.java --- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/IntegerBelowNode.java Fri Feb 06 04:35:28 2015 +0100 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/IntegerBelowNode.java Fri Feb 06 05:22:59 2015 +0100 @@ -62,6 +62,10 @@ if (synonym != null) { return synonym; } + if (forX.isConstant() && forX.asJavaConstant().asLong() == 0) { + // 0 |<| y is the same as 0 != y + return new LogicNegationNode(CompareNode.createCompareNode(Condition.EQ, forX, forY)); + } return this; } @@ -79,10 +83,6 @@ } } } - if (forX.isConstant() && forX.asJavaConstant().asLong() == 0) { - // 0 |<| y is the same as 0 != y - return new LogicNegationNode(CompareNode.createCompareNode(Condition.EQ, forX, forY)); - } return null; }