# HG changeset patch # User Josef Eisl # Date 1422967593 -3600 # Node ID d4b0e2e9b9456c393414c708ba8a0f24f3e9764a # Parent 1fca9212fb618519355b75e6a3bed0f9352f6c02 InstructionNumberer: remove opIdToBlockMap. diff -r 1fca9212fb61 -r d4b0e2e9b945 graal/com.oracle.graal.lir/src/com/oracle/graal/lir/stackslotalloc/InstructionNumberer.java --- 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"; }