Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java @ 2779:93ec3f067420
Changed CriticalEdgeFinder to use LIRBlock.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 25 May 2011 11:04:59 +0200 |
parents | 398b8fa5dc81 |
children | 915456e4959e |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java Tue May 24 21:39:45 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java Wed May 25 11:04:59 2011 +0200 @@ -52,9 +52,9 @@ /** * The list of instructions that produce input for this instruction. */ - public BlockBegin blockSuccessor(int index) { + public Instruction blockSuccessor(int index) { assert index >= 0 && index < blockSuccessorCount; - return (BlockBegin) successors().get(super.successorCount() + SUCCESSOR_COUNT + index); + return (Instruction) successors().get(super.successorCount() + SUCCESSOR_COUNT + index); } public Instruction setBlockSuccessor(int index, Instruction n) { @@ -123,7 +123,7 @@ * Gets the successor corresponding to the default (fall through) case. * @return the default successor */ - public BlockBegin defaultSuccessor() { + public Instruction defaultSuccessor() { return blockSuccessor(blockSuccessorCount - 1); }