comparison graal/GraalCompiler/src/com/sun/c1x/alloc/EdgeMoveOptimizer.java @ 2778:2ac7b30b7290

Enabled new block finding algorithm.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Tue, 24 May 2011 21:39:45 +0200
parents c1ce2a53d6c3
children c3f64b66fc78
comparison
equal deleted inserted replaced
2777:3e4d992fd312 2778:2ac7b30b7290
124 assert numPreds > 1 : "do not call otherwise"; 124 assert numPreds > 1 : "do not call otherwise";
125 125
126 // setup a list with the LIR instructions of all predecessors 126 // setup a list with the LIR instructions of all predecessors
127 for (int i = 0; i < numPreds; i++) { 127 for (int i = 0; i < numPreds; i++) {
128 LIRBlock pred = block.predAt(i); 128 LIRBlock pred = block.predAt(i);
129 assert pred != null;
130 assert pred.lir() != null;
129 List<LIRInstruction> predInstructions = pred.lir().instructionsList(); 131 List<LIRInstruction> predInstructions = pred.lir().instructionsList();
130 132
131 if (pred.numberOfSux() != 1) { 133 if (pred.numberOfSux() != 1) {
132 // this can happen with switch-statements where multiple edges are between 134 // this can happen with switch-statements where multiple edges are between
133 // the same blocks. 135 // the same blocks.