summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-04-30 08:41:47 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-04-30 08:41:47 +0000
commitf71f0f2e0bd05a32a01a20bc5bc2ebd5db88c9f1 (patch)
tree6e2ff11b305d38e1612ce0a494a6183669a574b6 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent71c2e0f2620a07ca96dc1389e282fdad3487bd02 (diff)
downloadbcm5719-llvm-f71f0f2e0bd05a32a01a20bc5bc2ebd5db88c9f1.tar.gz
bcm5719-llvm-f71f0f2e0bd05a32a01a20bc5bc2ebd5db88c9f1.zip
Local spiller kills a store if the folded restore is turned into a copy.
But this is incorrect if the spilled value live range extends beyond the current BB. It is currently controlled by a temporary option -spiller-check-liveout. llvm-svn: 28024
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 125a18dd24e..c6dc2b92d44 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -271,14 +271,15 @@ addIntervalsForSpills(const LiveInterval &li, VirtRegMap &vrm, int slot) {
// can do this, we don't need to insert spill code.
if (lv_)
lv_->instructionChanged(MI, fmi);
- vrm.virtFolded(li.reg, MI, i, fmi);
+ MachineBasicBlock &MBB = *MI->getParent();
+ bool LiveOut = li.liveAt(getInstructionIndex(&MBB.back()) +
+ InstrSlots::NUM);
+ vrm.virtFolded(li.reg, MI, i, fmi, LiveOut);
mi2iMap_.erase(MI);
i2miMap_[index/InstrSlots::NUM] = fmi;
mi2iMap_[fmi] = index;
- MachineBasicBlock &MBB = *MI->getParent();
MI = MBB.insert(MBB.erase(MI), fmi);
++numFolded;
-
// Folding the load/store can completely change the instruction in
// unpredictable ways, rescan it from the beginning.
goto for_operand;
OpenPOWER on IntegriCloud