[llvm-commits] [llvm] r40030 - /llvm/trunk/lib/Target/ARM/ARMRegisterInfo.cpp

Evan Cheng evan.cheng at apple.com
Wed Jul 18 17:42:58 PDT 2007


Author: evancheng
Date: Wed Jul 18 19:42:58 2007
New Revision: 40030

URL: http://llvm.org/viewvc/llvm-project?rev=40030&view=rev
Log:
Only adjust esp around calls in presence of alloca.

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

Modified: llvm/trunk/lib/Target/ARM/ARMRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMRegisterInfo.cpp?rev=40030&r1=40029&r2=40030&view=diff

==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMRegisterInfo.cpp Wed Jul 18 19:42:58 2007
@@ -429,7 +429,7 @@
     if (CFSize >= ((1 << 12) - 1) / 2)  // Half of imm12
       return false;
   }
-  return !hasFP(MF);
+  return !MF.getFrameInfo()->hasVarSizedObjects();
 }
 
 /// emitARMRegPlusImmediate - Emits a series of instructions to materialize





More information about the llvm-commits mailing list