diff graal/GraalCompiler/src/com/sun/c1x/lir/LIRBlock.java @ 2789:aeccd2af4e9e

Fixes around critical edge split and placeholder removal after goto removal.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 25 May 2011 16:48:28 +0200
parents 9bc0c2eb00d6
children 2af109bec0c0
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/lir/LIRBlock.java	Wed May 25 14:33:44 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/lir/LIRBlock.java	Wed May 25 16:48:28 2011 +0200
@@ -256,6 +256,7 @@
         for (int i = 0; i < successors.size(); ++i) {
             if (successors.get(i) == target) {
                 successors.set(i, newSucc);
+                break;
             }
         }
     }
@@ -264,6 +265,7 @@
         for (int i = 0; i < predecessors.size(); ++i) {
             if (predecessors.get(i) == source) {
                 predecessors.set(i, newSucc);
+                break;
             }
         }
     }