Mercurial > hg > truffle
changeset 8603:32f9ec7963f9
Fix bug in integer canonicalization.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 02 Apr 2013 14:51:59 +0200 |
parents | db2b8fbbf8fc |
children | 1f83d8994b7a |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/IntegerAddNode.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/IntegerAddNode.java Tue Apr 02 12:57:58 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/IntegerAddNode.java Tue Apr 02 14:51:59 2013 +0200 @@ -51,7 +51,8 @@ // (a - b) + b return sub.x(); } - } else if (y() instanceof IntegerSubNode) { + } + if (y() instanceof IntegerSubNode) { IntegerSubNode sub = (IntegerSubNode) y(); if (sub.y() == x()) { // b + (a - b)