diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-09-13 16:47:56 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-09-13 16:47:56 +0000 |
commit | ee5655dca467d3812145a2f965c31edf4875c93e (patch) | |
tree | b0add16964b529f5c8b9f66365defa013d3d8152 /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | c1c622ef0dd29d1bafd580790aec5231af50abf2 (diff) | |
download | external_llvm-ee5655dca467d3812145a2f965c31edf4875c93e.zip external_llvm-ee5655dca467d3812145a2f965c31edf4875c93e.tar.gz external_llvm-ee5655dca467d3812145a2f965c31edf4875c93e.tar.bz2 |
Switch extendInBlock() to take a kill slot instead of the last use slot.
Three out of four clients prefer this interface which is consistent with
extendIntervalEndTo() and LiveRangeCalc::extend().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139604 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 9257191..c4a548f 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -804,7 +804,7 @@ bool LiveIntervals::shrinkToUses(LiveInterval *li, SlotIndex BlockStart = getMBBStartIdx(MBB); // Extend the live range for VNI to be live at Idx. - if (VNInfo *ExtVNI = NewLI.extendInBlock(BlockStart, Idx)) { + if (VNInfo *ExtVNI = NewLI.extendInBlock(BlockStart, Idx.getNextSlot())) { (void)ExtVNI; assert(ExtVNI == VNI && "Unexpected existing value number"); // Is this a PHIDef we haven't seen before? |