Mercurial > hg > graal-compiler
diff graal/GraalCompiler/src/com/sun/c1x/ir/If.java @ 2768:43ffa0e47a46
Towards removing stateAfter on BlockEnd.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Mon, 23 May 2011 19:21:53 +0200 |
parents | ca31e84ff154 |
children | 93fd92c9f8b0 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/If.java Mon May 23 16:23:28 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/If.java Mon May 23 19:21:53 2011 +0200 @@ -80,19 +80,15 @@ * @param x the instruction producing the first input to the instruction * @param cond the condition (comparison operation) * @param y the instruction that produces the second input to this instruction - * @param trueSucc the block representing the true successor - * @param falseSucc the block representing the false successor * @param stateAfter the state before the branch but after the input values have been popped * @param graph */ - public If(Value x, Condition cond, Value y, Instruction trueSucc, Instruction falseSucc, FrameState stateAfter, Graph graph) { + public If(Value x, Condition cond, Value y, FrameState stateAfter, Graph graph) { super(CiKind.Illegal, stateAfter, 2, INPUT_COUNT, SUCCESSOR_COUNT, graph); assert Util.archKindsEqual(x, y); condition = cond; setX(x); setY(y); - setBlockSuccessor(0, trueSucc); - setBlockSuccessor(1, falseSucc); } /**