diff graal/GraalCompiler/src/com/sun/c1x/graph/IR.java @ 2716:c1a9bf38da28

Removed bci from the Instruction class.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Thu, 19 May 2011 13:59:55 +0200
parents a0dd2b907806
children c1ce2a53d6c3
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/IR.java	Thu May 19 13:21:31 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/graph/IR.java	Thu May 19 13:59:55 2011 +0200
@@ -155,12 +155,7 @@
      * @return the new block inserted
      */
     public BlockBegin splitEdge(BlockBegin source, BlockBegin target) {
-        int bci;
-        if (target.blockPredecessors().size() == 1) {
-            bci = target.bci();
-        } else {
-            bci = source.end().bci();
-        }
+        int bci = -2;
 
         int backEdgeIndex = target.predecessors().indexOf(source.end());
 
@@ -169,7 +164,7 @@
 
         // This goto is not a safepoint.
         Goto e = new Goto(target, null, compilation.graph);
-        newSucc.appendNext(e, bci);
+        newSucc.appendNext(e);
         newSucc.setEnd(e);
         e.reorderSuccessor(0, backEdgeIndex);
         // setup states