summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-01-10 08:24:38 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-01-10 08:24:38 +0000
commitf2553ab84f5763327edc13121eb8af9ad537a345 (patch)
treeeafbca93c1b346092cbe0cad62e77319f46eabc0 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent8b03bafd3723a6666adf835ab53e49c70f80a0b6 (diff)
downloadbcm5719-llvm-f2553ab84f5763327edc13121eb8af9ad537a345.tar.gz
bcm5719-llvm-f2553ab84f5763327edc13121eb8af9ad537a345.zip
Only remat loads from immutable stack slots.
llvm-svn: 45831
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 80920405de4..da76269c68f 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -624,7 +624,7 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li,
int FrameIdx = 0;
if (!tii_->isLoadFromStackSlot(MI, FrameIdx) ||
- !mf_->getFrameInfo()->isFixedObjectIndex(FrameIdx))
+ !mf_->getFrameInfo()->isImmutableObjectIndex(FrameIdx))
return false;
// This is a load from fixed stack slot. It can be rematerialized unless it's
@@ -719,7 +719,7 @@ bool LiveIntervals::tryFoldMemoryOperand(MachineInstr* &MI,
else
LiveVariables::transferKillDeadInfo(MI, fmi, mri_);
MachineBasicBlock &MBB = *MI->getParent();
- if (isSS && !mf_->getFrameInfo()->isFixedObjectIndex(Slot))
+ if (isSS && !mf_->getFrameInfo()->isImmutableObjectIndex(Slot))
vrm.virtFolded(Reg, MI, fmi, (VirtRegMap::ModRef)MRInfo);
vrm.transferSpillPts(MI, fmi);
vrm.transferRestorePts(MI, fmi);
OpenPOWER on IntegriCloud