Mercurial > hg > graal-compiler
changeset 22907:6943313d3779
Fixed commutation logic for BinaryOpLogicNode
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 29 Oct 2015 12:22:17 -0700 |
parents | bac83664cfbb |
children | 774b5a2ed732 |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/BinaryOpLogicNode.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/BinaryOpLogicNode.java Wed Oct 28 14:07:45 2015 -0700 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/BinaryOpLogicNode.java Thu Oct 29 12:22:17 2015 -0700 @@ -75,7 +75,7 @@ @SuppressWarnings("deprecation") public LogicNode maybeCommuteInputs() { assert this instanceof BinaryCommutative; - if (x.isConstant() && !y.isConstant() || x.getId() > y.getId()) { + if (!y.isConstant() && x.getId() > y.getId()) { ValueNode tmp = x; x = y; y = tmp;