Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/graph/IR.java @ 2833:1cd59ca9ac86
Removed Throw HIR instruction. Removed special handling for exceptions in register allocator.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Tue, 31 May 2011 13:30:23 +0200 |
parents | 775c31be565c |
children | c1c8a0291771 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/IR.java Tue May 31 11:50:19 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/graph/IR.java Tue May 31 13:30:23 2011 +0200 @@ -88,7 +88,6 @@ Map<Block, LIRBlock> map = new HashMap<Block, LIRBlock>(); for (Block b : blocks) { LIRBlock block = new LIRBlock(b.blockID()); - block.setExceptionEntry(b.isExceptionEntry()); map.put(b, block); block.setInstructions(b.getInstructions()); block.setLinearScanNumber(b.blockID()); @@ -100,11 +99,7 @@ for (Block b : blocks) { for (Block succ : b.getSuccessors()) { -// if (succ.isExceptionEntry()) { -// map.get(b).getExceptionHandlerSuccessors().add(map.get(succ)); -// } else { - map.get(b).blockSuccessors().add(map.get(succ)); -// } + map.get(b).blockSuccessors().add(map.get(succ)); } for (Block pred : b.getPredecessors()) { @@ -112,16 +107,10 @@ } } - - // TODO(tw): Schedule nodes within a block. - - CriticalEdgeFinder finder = new CriticalEdgeFinder(lirBlocks, compilation.graph); finder.splitCriticalEdges(); - orderedBlocks = lirBlocks; - valueToBlock = new HashMap<Node, LIRBlock>(); for (LIRBlock b : orderedBlocks) { for (Node i : b.getInstructions()) {