diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-10-08 06:59:30 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-10-08 06:59:30 +0000 |
commit | 537d5c27ff64b021ba14e2dc9589bf321dd2327a (patch) | |
tree | 775a79a2221c494a52e831fa6455f36d697030b4 /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 529ac2f286b89a3f39efb91914897cef7e07b0d6 (diff) |
Kill cycle of an live range is always the last use index + 1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42742 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 88eeff7605..5ada75ca01 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -449,7 +449,7 @@ addIntervalsForSpills(const LiveInterval &li, VirtRegMap &vrm, unsigned reg) { nI.weight = HUGE_VALF; if (HasUse) { - LiveRange LR(getLoadIndex(index), getUseIndex(index), + LiveRange LR(getLoadIndex(index), getUseIndex(index)+1, nI.getNextValue(~0U, 0, VNInfoAllocator)); DOUT << " +" << LR; nI.addRange(LR); |