Only adjust esp around calls in presence of alloca.

llvm-svn: 40030
This commit is contained in:
Evan Cheng 2007-07-19 00:42:58 +00:00
parent 5fbd7e0264
commit 22b0c344db
1 changed files with 1 additions and 1 deletions

View File

@ -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