Mercurial > hg > truffle
diff graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/ConditionalEliminationTest.java @ 11409:1f302b6e16b0
Introduce LogicNegationNode and remove Negatable interface.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Sat, 24 Aug 2013 14:38:11 +0200 |
parents | 020f63bfd781 |
children | ae27f6ac3374 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/ConditionalEliminationTest.java Sat Aug 24 14:32:57 2013 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/ConditionalEliminationTest.java Sat Aug 24 14:38:11 2013 +0200 @@ -169,8 +169,8 @@ IsNullNode x = graph.unique(new IsNullNode(graph.getLocal(0))); InstanceOfNode y = instanceOf; ShortCircuitOrNode disjunction = graph.unique(new ShortCircuitOrNode(x, false, y, false, NOT_FREQUENT_PROBABILITY)); - ifNode.setCondition(disjunction); - ifNode.negate(disjunction); + LogicNegationNode negation = graph.unique(new LogicNegationNode(disjunction)); + ifNode.setCondition(negation); new CanonicalizerPhase.Instance(runtime(), null, true).apply(graph); new ConditionalEliminationPhase(runtime()).apply(graph); new CanonicalizerPhase.Instance(runtime(), null, true).apply(graph);