Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java @ 2793:d3fc4fe063bf
Rename BlockBegin to Merge, remove some Block related member from it. Made CFGPrinter work with the Block class from schedule
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Fri, 27 May 2011 11:08:55 +0200 |
parents | 3e3338a1abb9 |
children | e1dad0edd57a |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java Thu May 26 11:55:16 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Phi.java Fri May 27 11:08:55 2011 +0200 @@ -50,12 +50,12 @@ * The join block for this phi. */ @Override - public BlockBegin block() { - return (BlockBegin) inputs().get(super.inputCount() + INPUT_BLOCK); + public Merge block() { + return (Merge) inputs().get(super.inputCount() + INPUT_BLOCK); } public Value setBlock(Value n) { - return (BlockBegin) inputs().set(super.inputCount() + INPUT_BLOCK, n); + return (Merge) inputs().set(super.inputCount() + INPUT_BLOCK, n); } /** @@ -65,11 +65,11 @@ * @param index the index into the stack (if < 0) or local variables * @param graph */ - public Phi(CiKind kind, BlockBegin block, Graph graph) { + public Phi(CiKind kind, Merge block, Graph graph) { this(kind, block, DEFAULT_MAX_VALUES, graph); } - public Phi(CiKind kind, BlockBegin block, int maxValues, Graph graph) { + public Phi(CiKind kind, Merge block, int maxValues, Graph graph) { super(kind, INPUT_COUNT + maxValues, SUCCESSOR_COUNT, graph); usedInputCount = 1; setBlock(block);