Mercurial > hg > graal-compiler
diff graal/GraalCompiler/src/com/sun/c1x/ir/IfOp.java @ 2587:51ebe5f0516f
changed NegateOp, more Op2 changes (generic inputValuesDo impl)
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 05 May 2011 15:01:34 +0200 |
parents | 421da5f53b5e |
children | 092e628ddd5d |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/IfOp.java Thu May 05 14:37:17 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/IfOp.java Thu May 05 15:01:34 2011 +0200 @@ -88,7 +88,7 @@ */ public IfOp(Value x, Condition cond, Value y, Value trueValue, Value falseValue, Graph graph) { // TODO: return the appropriate bytecode IF_ICMPEQ, etc - super(trueValue.kind.meet(falseValue.kind), Bytecodes.ILLEGAL, x, y, graph); + super(trueValue.kind.meet(falseValue.kind), Bytecodes.ILLEGAL, x, y, INPUT_COUNT, SUCCESSOR_COUNT, graph); this.cond = cond; setTrueValue(trueValue); setFalseValue(falseValue); @@ -111,13 +111,6 @@ } @Override - public void inputValuesDo(ValueClosure closure) { - super.inputValuesDo(closure); - setTrueValue(closure.apply(trueValue())); - setFalseValue(closure.apply(falseValue())); - } - - @Override public void accept(ValueVisitor v) { v.visitIfOp(this); }