comparison graal/GraalCompiler/src/com/sun/c1x/lir/LIRBlock.java @ 2779:93ec3f067420

Changed CriticalEdgeFinder to use LIRBlock.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 25 May 2011 11:04:59 +0200
parents 2ac7b30b7290
children 9bc0c2eb00d6
comparison
equal deleted inserted replaced
2778:2ac7b30b7290 2779:93ec3f067420
247 } 247 }
248 248
249 public void setInstructions(List<Instruction> list) { 249 public void setInstructions(List<Instruction> list) {
250 instructions = list; 250 instructions = list;
251 } 251 }
252
253 public void substituteSuccessor(LIRBlock target, LIRBlock newSucc) {
254 for (int i = 0; i < successors.size(); ++i) {
255 if (successors.get(i) == target) {
256 successors.set(i, newSucc);
257 }
258 }
259 }
260
261 public void substitutePredecessor(LIRBlock source, LIRBlock newSucc) {
262 for (int i = 0; i < predecessors.size(); ++i) {
263 if (predecessors.get(i) == source) {
264 predecessors.set(i, newSucc);
265 }
266 }
267 }
252 } 268 }