diff graal/GraalCompiler/src/com/sun/c1x/ir/Instruction.java @ 2783:9bc0c2eb00d6

Made graph builder removal of BlockBegin work.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 25 May 2011 12:04:58 +0200
parents 27512ea6bbcb
children d3fc4fe063bf
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Instruction.java	Wed May 25 11:15:24 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Instruction.java	Wed May 25 12:04:58 2011 +0200
@@ -117,11 +117,11 @@
      */
     @SuppressWarnings({ "unchecked", "rawtypes" })
     public List<Instruction> blockPredecessors() {
-        if (predecessors().size() == 1 && predecessors().get(0) == graph().start()) {
+        /*if (predecessors().size() == 1 && predecessors().get(0) == graph().start()) {
             return Collections.EMPTY_LIST;
-        } else {
+        } else {)*/
             return (List) Collections.unmodifiableList(predecessors());
-        }
+        //}
     }
 
     /**
@@ -130,11 +130,11 @@
      */
     public int numberOfPreds() {
         // ignore the graph root
-        if (predecessors().size() == 1 && predecessors().get(0) == graph().start()) {
+        /*if (predecessors().size() == 1 && predecessors().get(0) == graph().start()) {
             return 0;
-        } else {
+        } else {*/
             return predecessors().size();
-        }
+        //}
     }
 
     public Instruction predAt(int j) {