Skip to content
Snippets Groups Projects
Commit 22b0c344 authored by Evan Cheng's avatar Evan Cheng
Browse files

Only adjust esp around calls in presence of alloca.

llvm-svn: 40030
parent 5fbd7e02
No related branches found
No related tags found
No related merge requests found
...@@ -429,7 +429,7 @@ bool ARMRegisterInfo::hasReservedCallFrame(MachineFunction &MF) const { ...@@ -429,7 +429,7 @@ bool ARMRegisterInfo::hasReservedCallFrame(MachineFunction &MF) const {
if (CFSize >= ((1 << 12) - 1) / 2) // Half of imm12 if (CFSize >= ((1 << 12) - 1) / 2) // Half of imm12
return false; return false;
} }
return !hasFP(MF); return !MF.getFrameInfo()->hasVarSizedObjects();
} }
/// emitARMRegPlusImmediate - Emits a series of instructions to materialize /// emitARMRegPlusImmediate - Emits a series of instructions to materialize
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment