Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/graph/IR.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 | 398b8fa5dc81 |
children | 915456e4959e |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/IR.java Tue May 24 13:55:56 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/graph/IR.java Tue May 24 15:31:52 2011 +0200 @@ -129,9 +129,9 @@ if (orderedBlocks == null) { CriticalEdgeFinder finder = new CriticalEdgeFinder(this); - getHIRStartBlock().iteratePreOrder(finder); + ((BlockBegin) getHIRStartBlock()).iteratePreOrder(finder); finder.splitCriticalEdges(); - ComputeLinearScanOrder computeLinearScanOrder = new ComputeLinearScanOrder(compilation.stats.blockCount, getHIRStartBlock()); + ComputeLinearScanOrder computeLinearScanOrder = new ComputeLinearScanOrder(compilation.stats.blockCount, (BlockBegin) getHIRStartBlock()); List<BlockBegin> blocks = computeLinearScanOrder.linearScanOrder(); orderedBlocks = new ArrayList<LIRBlock>(); @@ -187,7 +187,7 @@ TTY.println("IR for " + compilation.method); final InstructionPrinter ip = new InstructionPrinter(TTY.out()); final BlockPrinter bp = new BlockPrinter(this, ip, cfgOnly); - getHIRStartBlock().iteratePreOrder(bp); + ((BlockBegin) getHIRStartBlock()).iteratePreOrder(bp); } } @@ -287,7 +287,7 @@ return maxLocks; } - public BlockBegin getHIRStartBlock() { - return (BlockBegin) compilation.graph.start().successors().get(0); + public Instruction getHIRStartBlock() { + return (Instruction) compilation.graph.start().successors().get(0); } }