Mercurial > hg > graal-compiler
diff graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java @ 2781:bda5972a40a5
remove unnecessary BlockBegin nodes in frontend
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 24 May 2011 15:31:52 +0200 |
parents | 27512ea6bbcb |
children | 915456e4959e |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java Tue May 24 13:55:56 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java Tue May 24 15:31:52 2011 +0200 @@ -37,8 +37,7 @@ */ public final class BlockBegin extends StateSplit { - private static final int INPUT_COUNT = 1; - private static final int INPUT_STATE_BEFORE = 0; + private static final int INPUT_COUNT = 0; private static final int SUCCESSOR_COUNT = 0; @@ -135,7 +134,7 @@ ArrayList<BlockBegin> excBlocks = new ArrayList<BlockBegin>(); while (inst != null) { if (inst instanceof ExceptionEdgeInstruction) { - excBlocks.add(((ExceptionEdgeInstruction) inst).exceptionEdge()); + excBlocks.add((BlockBegin) ((ExceptionEdgeInstruction) inst).exceptionEdge()); } inst = inst.next(); } @@ -360,7 +359,7 @@ } for (Instruction x = next(); x != null; x = x.next()) { if (x instanceof ExceptionEdgeInstruction && ((ExceptionEdgeInstruction) x).exceptionEdge() != null) { - closure.apply(((ExceptionEdgeInstruction) x).exceptionEdge()); + closure.apply((BlockBegin) ((ExceptionEdgeInstruction) x).exceptionEdge()); } } }