Mercurial > hg > truffle
diff graal/com.oracle.graal.lir/src/com/oracle/graal/lir/stackslotalloc/StackInterval.java @ 19081:3ec39188b0ee
StackInterval: remove use position list.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Sat, 31 Jan 2015 10:49:20 +0100 |
parents | e22286559a8b |
children | 09292c24d555 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/stackslotalloc/StackInterval.java Sat Jan 31 10:35:50 2015 +0100 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/stackslotalloc/StackInterval.java Sat Jan 31 10:49:20 2015 +0100 @@ -22,11 +22,8 @@ */ package com.oracle.graal.lir.stackslotalloc; -import java.util.*; - import com.oracle.graal.api.code.*; import com.oracle.graal.api.meta.*; -import com.oracle.graal.debug.*; public final class StackInterval { @@ -36,19 +33,11 @@ private final LIRKind kind; private int from = INVALID_START; private int to = INVALID_END; - private final SortedMap<Integer, UseType> usePos; private StackSlot location; - public enum UseType { - // Prefixes for c1viz - M_USE, - S_DEF - } - public StackInterval(VirtualStackSlot operand, LIRKind kind) { this.operand = operand; this.kind = kind; - this.usePos = new TreeMap<>(); } public boolean verify(LSStackSlotAllocator.Allocator allocator) { @@ -61,20 +50,6 @@ return operand; } - public void addUse(int opId) { - addTo(opId); - Debug.log("Adding use pos: %d", opId); - // we might overwrite the previous entry - usePos.put(opId, UseType.M_USE); - } - - public void addDef(int opId) { - addFrom(opId); - Debug.log("Adding def pos: %d", opId); - // we might overwrite the previous entry - usePos.put(opId, UseType.S_DEF); - } - public void addTo(int opId) { if (opId >= to) { to = opId; @@ -111,10 +86,6 @@ return to; } - public SortedMap<Integer, UseType> usePosList() { - return usePos; - } - public void fixFrom() { if (from == INVALID_START) { from = 0;