diff graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/phases/DeadCodeEliminationPhase.java @ 2953:445233cd91df

added GraalOptions.TestGraphDuplication, fixed graph duplication
author Lukas Stadler <lukas.stadler@jku.at>
date Wed, 15 Jun 2011 11:21:53 +0200
parents 0c0e407faa39
children cbece91420af
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/phases/DeadCodeEliminationPhase.java	Wed Jun 15 09:50:02 2011 +0200
+++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/phases/DeadCodeEliminationPhase.java	Wed Jun 15 11:21:53 2011 +0200
@@ -100,6 +100,7 @@
         for (Node node : graph.getNodes()) {
             if (node != Node.Null && !flood.isMarked(node) && isCFG(node)) {
                 if (node instanceof LoopEnd) {
+                    assert ((LoopEnd) node).loopBegin() != null : "node " + node;
                     brokenLoops.add(((LoopEnd) node).loopBegin());
                 }
                 // iterate backwards so that the predecessor indexes in removePhiPredecessor are correct