diff graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java @ 2755:80b024e75b29

small fix for dead blocks
author Lukas Stadler <lukas.stadler@jku.at>
date Fri, 20 May 2011 14:50:04 +0200
parents 0d268cf66e24
children 152b98832b0e
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java	Fri May 20 14:34:36 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java	Fri May 20 14:50:04 2011 +0200
@@ -1178,7 +1178,7 @@
         while ((block = removeFromWorkList()) != null) {
 
             // remove blocks that have no predecessors by the time it their bytecodes are parsed
-            if (block.firstInstruction.predecessors().size() == 0) {
+            if (block.firstInstruction == null) {
                 markVisited(block);
                 continue;
             }