diff 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
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java	Fri May 27 19:57:56 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java	Fri May 27 23:38:52 2011 +0200
@@ -1291,7 +1291,7 @@
 
     private List<Phi> getPhis(LIRBlock block) {
         if (block.getInstructions().size() > 0) {
-            Node i = block.getInstructions().get(0);
+            Node i = block.firstInstruction();
             if (i instanceof Merge) {
                 List<Phi> result = new ArrayList<Phi>();
                 for (Node n : i.usages()) {