summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-20 16:38:50 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-06-20 16:38:50 +0000
commitd702e8fddff5ae588afef057235854a51c7de918 (patch)
tree516d54e999894d764caee3d233c203dee0902bce /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent6c19063a1c717e3cb55f32f6551a0fe108463b70 (diff)
downloadbcm5719-llvm-d702e8fddff5ae588afef057235854a51c7de918.tar.gz
bcm5719-llvm-d702e8fddff5ae588afef057235854a51c7de918.zip
Delete dead code.
llvm-svn: 158827
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 7308f0f50e7..6b8cc887043 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -1224,54 +1224,6 @@ private:
}
}
- // Collect IntRangePairs for all operands of MI that may need fixing.
- void collectRangesInBundle(MachineInstr* MI, RangeSet& Entering,
- RangeSet& Exiting, SlotIndex MIStartIdx,
- SlotIndex MIEndIdx) {
- for (MachineInstr::mop_iterator MOI = MI->operands_begin(),
- MOE = MI->operands_end();
- MOI != MOE; ++MOI) {
- const MachineOperand& MO = *MOI;
- assert(!MO.isRegMask() && "Can't have RegMasks in bundles.");
- if (!MO.isReg() || MO.getReg() == 0)
- continue;
-
- unsigned Reg = MO.getReg();
-
- // TODO: Currently we're skipping uses that are reserved or have no
- // interval, but we're not updating their kills. This should be
- // fixed.
- if (TargetRegisterInfo::isPhysicalRegister(Reg) && LIS.isReserved(Reg))
- continue;
-
- if (TargetRegisterInfo::isPhysicalRegister(Reg) && LIS.trackingRegUnits())
- for (MCRegUnitIterator Units(Reg, &TRI); Units.isValid(); ++Units)
- collectRangesInBundle(MO, &LIS.getRegUnit(*Units),
- Entering, Exiting, MIStartIdx, MIEndIdx);
- else if (LIS.hasInterval(Reg))
- collectRangesInBundle(MO, &LIS.getInterval(Reg),
- Entering, Exiting, MIStartIdx, MIEndIdx);
- }
- }
-
- void collectRangesInBundle(const MachineOperand &MO, LiveInterval *LI,
- RangeSet &Entering, RangeSet &Exiting,
- SlotIndex MIStartIdx, SlotIndex MIEndIdx) {
- if (MO.readsReg()) {
- LiveRange* LR = LI->getLiveRangeContaining(MIStartIdx);
- if (LR != 0)
- Entering.insert(std::make_pair(LI, LR));
- }
- if (MO.isDef()) {
- assert(!MO.isEarlyClobber() &&
- "Early clobbers not allowed in bundles.");
- assert(!MO.isDead() && "Dead-defs not allowed in bundles.");
- LiveRange* LR = LI->getLiveRangeContaining(MIEndIdx.getDeadSlot());
- assert(LR != 0 && "Internal ranges not allowed in bundles.");
- Exiting.insert(std::make_pair(LI, LR));
- }
- }
-
BundleRanges createBundleRanges(RangeSet& Entering,
RangeSet& Internal,
RangeSet& Exiting) {
OpenPOWER on IntegriCloud