diff graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java @ 2779:93ec3f067420

Changed CriticalEdgeFinder to use LIRBlock.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 25 May 2011 11:04:59 +0200
parents 27512ea6bbcb
children 915456e4959e
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java	Tue May 24 21:39:45 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java	Wed May 25 11:04:59 2011 +0200
@@ -343,25 +343,4 @@
     public String shortName() {
         return "BlockBegin #" + blockID;
     }
-
-    /**
-     * Iterates over all successors of this block: successors of the end node and exception handler.
-     */
-    public void allSuccessorsDo(boolean backwards, BlockClosure closure) {
-        BlockEnd end = end();
-        if (backwards) {
-            for (int i = end.blockSuccessorCount() - 1; i >= 0; i--) {
-                closure.apply(end.blockSuccessor(i));
-            }
-        } else {
-            for (int i = 0; i < end.blockSuccessorCount(); i++) {
-                closure.apply(end.blockSuccessor(i));
-            }
-        }
-        for (Instruction x = next(); x != null; x = x.next()) {
-            if (x instanceof ExceptionEdgeInstruction && ((ExceptionEdgeInstruction) x).exceptionEdge() != null) {
-                closure.apply(((ExceptionEdgeInstruction) x).exceptionEdge());
-            }
-        }
-    }
 }