Mercurial > hg > graal-compiler
changeset 19103:ccabd82be35c
fix canonicalizer in IntegerTestNode
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Tue, 03 Feb 2015 18:30:07 +0100 |
parents | 026749fff52c |
children | 81be933b83eb 67d9e635102f |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/IntegerTestNode.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/calc/IntegerTestNode.java Tue Feb 03 17:15:44 2015 +0100 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/IntegerTestNode.java Tue Feb 03 18:30:07 2015 +0100 @@ -44,7 +44,7 @@ if (forX.isConstant() && forY.isConstant()) { return LogicConstantNode.forBoolean((forX.asJavaConstant().asLong() & forY.asJavaConstant().asLong()) == 0); } - if (getX().stamp() instanceof IntegerStamp && getY().stamp() instanceof IntegerStamp) { + if (forX.stamp() instanceof IntegerStamp && forY.stamp() instanceof IntegerStamp) { IntegerStamp xStamp = (IntegerStamp) forX.stamp(); IntegerStamp yStamp = (IntegerStamp) forY.stamp(); if ((xStamp.upMask() & yStamp.upMask()) == 0) {