aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2012-09-03 06:31:45 +0000
committerLang Hames <lhames@gmail.com>2012-09-03 06:31:45 +0000
commit7b23d0838551ee16cbd49692df1eb0598b8a48f2 (patch)
treef7a1673406d606fb9e6fd9cde76ae744717ef0ca /lib/CodeGen
parent84451a110da981adfff2792c3aee5df322864da6 (diff)
downloadexternal_llvm-7b23d0838551ee16cbd49692df1eb0598b8a48f2.zip
external_llvm-7b23d0838551ee16cbd49692df1eb0598b8a48f2.tar.gz
external_llvm-7b23d0838551ee16cbd49692df1eb0598b8a48f2.tar.bz2
When updating live range endpoints, make sure to preserve the early clobber bit.
Fixs PR13719. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 87538c4..bdf4f2d 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -1173,7 +1173,7 @@ private:
SlotIndex LastUse = findLastUseBefore(LI->reg, OldIdx);
if (LastUse != NewIdx)
moveKillFlags(LI->reg, NewIdx, LastUse);
- LR->end = LastUse.getRegSlot();
+ LR->end = LastUse.getRegSlot(LR->end.isEarlyClobber());
}
void moveEnteringDownFrom(SlotIndex OldIdx, IntRangePair& P) {
@@ -1187,7 +1187,7 @@ private:
assert(LR->end > OldIdx && "LiveRange does not cover original slot");
moveKillFlags(LI->reg, LR->end, NewIdx);
}
- LR->end = NewIdx.getRegSlot();
+ LR->end = NewIdx.getRegSlot(LR->end.isEarlyClobber());
}
}