Mercurial > hg > graal-compiler
changeset 11690:657079bf6174
Create GuardNode instead of FixedGuardNode when lowering GuardingPiNode.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 17 Sep 2013 23:01:56 +0200 |
parents | 7a987d8147c2 |
children | 1870ea57e814 |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardingPiNode.java |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardingPiNode.java Tue Sep 17 18:05:15 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardingPiNode.java Tue Sep 17 23:01:56 2013 +0200 @@ -80,10 +80,9 @@ if (graph().getGuardsPhase() == StructuredGraph.GuardsStage.FIXED_DEOPTS) { throw new GraalInternalError("Cannot create guards in after-guard lowering"); } - FixedGuardNode guard = graph().add(new FixedGuardNode(condition, reason, action, negated)); + GuardingNode guard = tool.createGuard(condition, reason, action, negated); PiNode pi = graph().unique(new PiNode(object, stamp(), guard)); - replaceAtUsages(pi); - graph().replaceFixedWithFixed(this, guard); + graph().replaceFixedWithFloating(this, pi); } @Override