comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2806:f35c6f8f0f5d

Fixed two regressions due to the flexible scheduling.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Fri, 27 May 2011 23:38:52 +0200
parents c3f64b66fc78
children 50b5db2c3e68
comparison
equal deleted inserted replaced
2805:c3f64b66fc78 2806:f35c6f8f0f5d
1289 } 1289 }
1290 } 1290 }
1291 1291
1292 private List<Phi> getPhis(LIRBlock block) { 1292 private List<Phi> getPhis(LIRBlock block) {
1293 if (block.getInstructions().size() > 0) { 1293 if (block.getInstructions().size() > 0) {
1294 Node i = block.getInstructions().get(0); 1294 Node i = block.firstInstruction();
1295 if (i instanceof Merge) { 1295 if (i instanceof Merge) {
1296 List<Phi> result = new ArrayList<Phi>(); 1296 List<Phi> result = new ArrayList<Phi>();
1297 for (Node n : i.usages()) { 1297 for (Node n : i.usages()) {
1298 if (n instanceof Phi) { 1298 if (n instanceof Phi) {
1299 result.add((Phi) n); 1299 result.add((Phi) n);