summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-10-08 06:59:30 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-10-08 06:59:30 +0000
commit21a58a72c5877d8b14dc53ad1507c178bc632536 (patch)
tree301f67a06d66e1925422e3047759202657083568 /llvm/lib
parentbcd30bb0cdcb3aa31ccf2087f3b32cc527347f3b (diff)
downloadbcm5719-llvm-21a58a72c5877d8b14dc53ad1507c178bc632536.tar.gz
bcm5719-llvm-21a58a72c5877d8b14dc53ad1507c178bc632536.zip
Kill cycle of an live range is always the last use index + 1.
llvm-svn: 42742
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 88eeff7605a..5ada75ca016 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud