diff options
author | Cameron Zwarich <zwarich@apple.com> | 2013-02-20 06:46:41 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2013-02-20 06:46:41 +0000 |
commit | 294148238731d5b5e51f7664f303717cd93448ba (patch) | |
tree | 0a4143bb931e180f32c277dc8fd675f215a7a509 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 26ef663c42660a74a025bbf6b7f316f3e37815cc (diff) | |
download | bcm5719-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.cpp | 2 |
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)) |