From 4558b807a2076e199bcb019f5edc9eabbc5922c1 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 19 Jul 2007 00:42:58 +0000 Subject: [PATCH] Only adjust esp around calls in presence of alloca. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40030 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMRegisterInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMRegisterInfo.cpp b/lib/Target/ARM/ARMRegisterInfo.cpp index f8e10deeb15..f9d9342fe55 100644 --- a/lib/Target/ARM/ARMRegisterInfo.cpp +++ b/lib/Target/ARM/ARMRegisterInfo.cpp @@ -429,7 +429,7 @@ bool ARMRegisterInfo::hasReservedCallFrame(MachineFunction &MF) const { 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 -- 2.34.1