aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 59880f22d0..1dda527c85 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -137,11 +137,6 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
rep(srcReg) == rep(dstReg)) {
// remove from def list
Interval& interval = getOrCreateInterval(rep(dstReg));
- unsigned defIndex = getInstructionIndex(mii);
- Interval::Defs::iterator d = std::lower_bound(
- interval.defs.begin(), interval.defs.end(), defIndex);
- assert(*d == defIndex && "Def index not found in def list!");
- interval.defs.erase(d);
// remove index -> MachineInstr and
// MachineInstr -> index mappings
Mi2IndexMap::iterator mi2i = mi2iMap_.find(mii);
@@ -289,7 +284,6 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock* mbb,
}
unsigned baseIndex = getInstructionIndex(mi);
- interval.defs.push_back(baseIndex);
bool killedInDefiningBasicBlock = false;
for (int i = 0, e = vi.Kills.size(); i != e; ++i) {
@@ -329,7 +323,6 @@ void LiveIntervals::handlePhysicalRegisterDef(MachineBasicBlock* mbb,
MachineBasicBlock::iterator e = mbb->end();
unsigned baseIndex = getInstructionIndex(mi);
- interval.defs.push_back(baseIndex);
unsigned start = getDefIndex(baseIndex);
unsigned end = start;
@@ -663,11 +656,6 @@ void LiveIntervals::Interval::join(const LiveIntervals::Interval& other)
cur = mergeRangesBackward(cur);
}
weight += other.weight;
- Defs u;
- std::set_union(defs.begin(), defs.end(),
- other.defs.begin(), other.defs.end(),
- std::back_inserter(u));
- defs = u;
++numJoins;
}
@@ -707,12 +695,6 @@ std::ostream& llvm::operator<<(std::ostream& os,
if (li.empty())
return os << "EMPTY";
- os << " {" << li.defs.front();
- for (LiveIntervals::Interval::Defs::const_iterator
- i = next(li.defs.begin()), e = li.defs.end(); i != e; ++i)
- os << "," << *i;
- os << "}";
-
os << " = ";
for (LiveIntervals::Interval::Ranges::const_iterator
i = li.ranges.begin(), e = li.ranges.end(); i != e; ++i) {