diff graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java @ 2624:8e44074058af

remove explicit pointer from BlockEnd to BlockBegin
author Lukas Stadler <lukas.stadler@jku.at>
date Tue, 10 May 2011 14:29:40 +0200
parents dd115f80acf8
children 62ff4a70f07e
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java	Tue May 10 11:55:12 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java	Tue May 10 14:29:40 2011 +0200
@@ -82,15 +82,12 @@
         BlockEnd old = this.end();
         if (old != end) {
             if (old != null) {
-                // disconnect this block from the old end
-                old.setBegin(null);
                 // disconnect this block from its current successors
                 for (BlockBegin s : old.blockSuccessors()) {
                     s.blockPredecessors().remove(this);
                 }
             }
             successors().set(super.successorCount() + SUCCESSOR_END, end);
-            end.setBegin(this);
             for (BlockBegin s : end.blockSuccessors()) {
                 s.addPredecessor(this);
             }