diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-01-10 08:24:38 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-01-10 08:24:38 +0000 |
commit | efe93677b27f625f29a92afaacc33a0d6cf2b1e5 (patch) | |
tree | 2355dab312fae9bdc3cf3ca8e31a973a4760738e | |
parent | 06701fc8dde2dade519a998975f91cb9abc55dd6 (diff) | |
download | external_llvm-efe93677b27f625f29a92afaacc33a0d6cf2b1e5.zip external_llvm-efe93677b27f625f29a92afaacc33a0d6cf2b1e5.tar.gz external_llvm-efe93677b27f625f29a92afaacc33a0d6cf2b1e5.tar.bz2 |
Only remat loads from immutable stack slots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45831 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 8092040..da76269 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/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); |