diff graal/GraalCompiler/src/com/sun/c1x/ir/If.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 6048da340364
children ca31e84ff154
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/If.java	Fri May 20 14:34:36 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/ir/If.java	Fri May 20 14:50:04 2011 +0200
@@ -116,7 +116,7 @@
      * Gets the block corresponding to the true successor.
      * @return the true successor
      */
-    public BlockBegin trueSuccessor() {
+    public Instruction trueSuccessor() {
         return blockSuccessor(0);
     }
 
@@ -124,7 +124,7 @@
      * Gets the block corresponding to the false successor.
      * @return the false successor
      */
-    public BlockBegin falseSuccessor() {
+    public Instruction falseSuccessor() {
         return blockSuccessor(1);
     }
 
@@ -133,7 +133,7 @@
      * @param istrue {@code true} if the true successor is requested, {@code false} otherwise
      * @return the corresponding successor
      */
-    public BlockBegin successor(boolean istrue) {
+    public Instruction successor(boolean istrue) {
         return blockSuccessor(istrue ? 0 : 1);
     }
 
@@ -141,7 +141,7 @@
      * Gets the successor of this instruction for the unordered case.
      * @return the successor for unordered inputs
      */
-    public BlockBegin unorderedSuccessor() {
+    public Instruction unorderedSuccessor() {
         return successor(unorderedIsTrue());
     }
 
@@ -163,8 +163,8 @@
     public void swapSuccessors() {
         unorderedIsTrue = !unorderedIsTrue;
         condition = condition.negate();
-        BlockBegin t = blockSuccessor(0);
-        BlockBegin f = blockSuccessor(1);
+        Instruction t = blockSuccessor(0);
+        Instruction f = blockSuccessor(1);
         setBlockSuccessor(0, f);
         setBlockSuccessor(1, t);
     }