Mercurial > hg > truffle
changeset 11393:fb6353944874
Make ConditionalEliminationPhase more robust when removing IfNodes
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 22 Aug 2013 14:04:03 +0200 |
parents | 66251d9f62ab |
children | 40c7cbe31aa9 |
files | graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/ConditionalEliminationPhase.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/ConditionalEliminationPhase.java Thu Aug 22 11:23:42 2013 +0200 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/ConditionalEliminationPhase.java Thu Aug 22 14:04:03 2013 +0200 @@ -540,7 +540,7 @@ } if (replacement != null) { - if (replacementAnchor instanceof GuardNode) { + if (!(replacementAnchor instanceof AbstractBeginNode)) { ValueAnchorNode anchor = graph.add(new ValueAnchorNode(replacementAnchor)); graph.addBeforeFixed(ifNode, anchor); }