[llvm-commits] [llvm] r45831 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp

Evan Cheng evan.cheng at apple.com
Thu Jan 10 00:24:38 PST 2008


Author: evancheng
Date: Thu Jan 10 02:24:38 2008
New Revision: 45831

URL: http://llvm.org/viewvc/llvm-project?rev=45831&view=rev
Log:
Only remat loads from immutable stack slots.

Modified:
    llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp

Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=45831&r1=45830&r2=45831&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Thu Jan 10 02:24:38 2008
@@ -624,7 +624,7 @@
 
   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 @@
     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);





More information about the llvm-commits mailing list