changeset 19122:d4b0e2e9b945

InstructionNumberer: remove opIdToBlockMap.
author Josef Eisl <josef.eisl@jku.at>
date Tue, 03 Feb 2015 13:46:33 +0100
parents 1fca9212fb61
children 0f3c0639dc3f
files graal/com.oracle.graal.lir/src/com/oracle/graal/lir/stackslotalloc/InstructionNumberer.java
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/stackslotalloc/InstructionNumberer.java	Tue Feb 03 13:33:52 2015 +0100
+++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/stackslotalloc/InstructionNumberer.java	Tue Feb 03 13:46:33 2015 +0100
@@ -32,7 +32,6 @@
 public class InstructionNumberer {
 
     private final LIRInstruction[] opIdToInstructionMap;
-    private final AbstractBlock<?>[] opIdToBlockMap;
 
     protected InstructionNumberer(LIR lir) {
         // Assign IDs to LIR nodes and build a mapping, lirOps, from ID to LIRInstruction node.
@@ -43,7 +42,6 @@
 
         // initialize with correct length
         opIdToInstructionMap = new LIRInstruction[numInstructions];
-        opIdToBlockMap = new AbstractBlock<?>[numInstructions];
     }
 
     /**
@@ -85,14 +83,13 @@
                 op.setId(opId);
 
                 opIdToInstructionMap[index] = op;
-                opIdToBlockMap[index] = block;
                 assert instructionForId(opId) == op : "must match";
 
                 index++;
                 opId += 2; // numbering of lirOps by two
             }
         }
-        assert index == opIdToBlockMap.length : "must match";
+        assert index == opIdToInstructionMap.length : "must match";
         assert (index << 1) == opId : "must match: " + (index << 1);
         assert opId - 2 == maxOpId() : "must match";
     }