Index: src/IceLiveness.cpp |
diff --git a/src/IceLiveness.cpp b/src/IceLiveness.cpp |
index 0960bd860d2ffdfd471a14d02db4fc38500972b6..79578a5200ee1c8294fd2b65a99effb6f0e4e9bf 100644 |
--- a/src/IceLiveness.cpp |
+++ b/src/IceLiveness.cpp |
@@ -35,8 +35,6 @@ void Liveness::init() { |
VariablesMetadata *VMetadata = Func->getVMetadata(); |
Nodes.resize(NumNodes); |
VarToLiveMap.resize(NumVars); |
- if (Mode == Liveness_Intervals) |
- LiveRanges.resize(NumVars); |
// Count the number of globals, and the number of locals for each |
// block. |
@@ -98,16 +96,4 @@ Variable *Liveness::getVariable(SizeT LiveIndex, const CfgNode *Node) const { |
return Nodes[NodeIndex].LiveToVarMap[LiveIndex - NumGlobals]; |
} |
-void Liveness::addLiveRange(Variable *Var, InstNumberT Start, InstNumberT End, |
- uint32_t WeightDelta) { |
- LiveRange &LiveRange = LiveRanges[Var->getIndex()]; |
- assert(WeightDelta != RegWeight::Inf); |
- LiveRange.addSegment(Start, End); |
- LiveRange.addWeight(WeightDelta); |
-} |
- |
-LiveRange &Liveness::getLiveRange(Variable *Var) { |
- return LiveRanges[Var->getIndex()]; |
-} |
- |
} // end of namespace Ice |