summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2013-02-20 06:46:41 +0000
committerCameron Zwarich <zwarich@apple.com>2013-02-20 06:46:41 +0000
commit294148238731d5b5e51f7664f303717cd93448ba (patch)
tree0a4143bb931e180f32c277dc8fd675f215a7a509 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent26ef663c42660a74a025bbf6b7f316f3e37815cc (diff)
downloadbcm5719-llvm-294148238731d5b5e51f7664f303717cd93448ba.tar.gz
bcm5719-llvm-294148238731d5b5e51f7664f303717cd93448ba.zip
Add SlotIndexes::repairIndexesInRange(), which repairs SlotIndexes after adding
and removing instructions. The implementation seems more complicated than it needs to be, but I couldn't find something simpler that dealt with all of the corner cases. Also add a call to repairIndexesInRange() from repairIntervalsInRange(). llvm-svn: 175601
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 0978d7342ec..7b1eed2a347 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -1044,6 +1044,8 @@ LiveIntervals::repairIntervalsInRange(MachineBasicBlock *MBB,
else
startIdx = getInstructionIndex(prior(Begin)).getRegSlot();
+ Indexes->repairIndexesInRange(MBB, Begin, End);
+
for (unsigned i = 0, e = OrigRegs.size(); i != e; ++i) {
unsigned Reg = OrigRegs[i];
if (!TargetRegisterInfo::isVirtualRegister(Reg))
OpenPOWER on IntegriCloud