Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/alloc/ControlFlowOptimizer.java @ 2581:4a36a0bd6d18
added GraalGraph to classpath, Node as superclass of Value
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 05 May 2011 13:27:48 +0200 |
parents | 16b9a8b5ad39 |
children | 6d19b4f476db |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/alloc/ControlFlowOptimizer.java Wed May 04 18:57:26 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/alloc/ControlFlowOptimizer.java Thu May 05 13:27:48 2011 +0200 @@ -148,7 +148,7 @@ } // update the block references in any branching LIR instructions - for (BlockBegin pred : block.predecessors()) { + for (BlockBegin pred : block.blockPredecessors()) { for (LIRInstruction instr : pred.lir().instructionsList()) { if (instr instanceof LIRBranch) { ((LIRBranch) instr).substitute(block, newTarget); @@ -269,11 +269,11 @@ } } - for (BlockBegin sux : block.end().successors()) { + for (BlockBegin sux : block.end().blockSuccessors()) { assert code.contains(sux) : "missing successor from: " + block + "to: " + sux; } - for (BlockBegin pred : block.predecessors()) { + for (BlockBegin pred : block.blockPredecessors()) { assert code.contains(pred) : "missing predecessor from: " + block + "to: " + pred; } }