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 | |
| parent | 529ac2f286b89a3f39efb91914897cef7e07b0d6 (diff) | |
| download | external_llvm-537d5c27ff64b021ba14e2dc9589bf321dd2327a.zip external_llvm-537d5c27ff64b021ba14e2dc9589bf321dd2327a.tar.gz external_llvm-537d5c27ff64b021ba14e2dc9589bf321dd2327a.tar.bz2 | |
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
| -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 88eeff7..5ada75c 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); |
