Mercurial > hg > truffle
changeset 12406:11e4744f1e86
Improve canonicalization of FixedGuardNode.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 14 Oct 2013 23:28:45 +0200 |
parents | 139b84d713bc |
children | 53297646b011 |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/FixedGuardNode.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/FixedGuardNode.java Mon Oct 14 23:28:10 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/FixedGuardNode.java Mon Oct 14 23:28:45 2013 +0200 @@ -82,7 +82,7 @@ @Override public void simplify(SimplifierTool tool) { - if (condition instanceof LogicNegationNode) { + while (condition instanceof LogicNegationNode) { LogicNegationNode negation = (LogicNegationNode) condition; setCondition(negation.getInput()); negated = !negated; @@ -100,7 +100,7 @@ deopt.setDeoptimizationState(getDeoptimizationState()); setNext(deopt); } - this.replaceAtUsages(BeginNode.prevBegin(this)); + this.replaceAtUsages(null); graph().removeFixed(this); } }