[llvm-commits] [llvm] r123193 - /llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp

Eric Christopher echristo at apple.com
Mon Jan 10 15:10:59 PST 2011


Author: echristo
Date: Mon Jan 10 17:10:59 2011
New Revision: 123193

URL: http://llvm.org/viewvc/llvm-project?rev=123193&view=rev
Log:
Expand on the safeness of restoring the sp from the fp a bit more.

Modified:
    llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp?rev=123193&r1=123192&r2=123193&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp Mon Jan 10 17:10:59 2011
@@ -288,7 +288,8 @@
   }
 
   // If the frame has variable sized objects then the epilogue must restore
-  // the sp from fp.
+  // the sp from fp. We can assume there's an FP here since hasFP already
+  // checks for hasVarSizedObjects.
   if (MFI->hasVarSizedObjects())
     AFI->setShouldRestoreSPFromFP(true);
 }





More information about the llvm-commits mailing list