diff graal/GraalCompiler/src/com/sun/c1x/graph/IR.java @ 2774:93fd92c9f8b0

Removed usage of stateAfter on BlockEnd instructions.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Tue, 24 May 2011 13:39:50 +0200
parents 27512ea6bbcb
children 398b8fa5dc81
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/IR.java	Tue May 24 12:07:17 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/graph/IR.java	Tue May 24 13:39:50 2011 +0200
@@ -230,17 +230,10 @@
         }
 
         // This goto is not a safepoint.
-        Goto e = new Goto(target, null, compilation.graph);
+        Goto e = new Goto(target, compilation.graph);
         newSucc.appendNext(e);
         e.reorderSuccessor(0, backEdgeIndex);
 
-        // setup states
-        FrameState s = source.end().stateAfter();
-        newSucc.setStateBefore(s);
-        e.setStateAfter(s);
-        assert newSucc.stateBefore().localsSize() == s.localsSize();
-        assert newSucc.stateBefore().stackSize() == s.stackSize();
-        assert newSucc.stateBefore().locksSize() == s.locksSize();
         // link predecessor to new block
         source.end().substituteSuccessor(target, newSucc);
         if (removePhiInputs.size() > 0) {