OSDN Git Service

ARM estimateStackSize() needs to account for simplified call frames.
authorJim Grosbach <grosbach@apple.com>
Tue, 5 Jul 2011 16:05:50 +0000 (16:05 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 5 Jul 2011 16:05:50 +0000 (16:05 +0000)
commitbc20e4f2dc11e346505f11efea22d9a1d3919eca
tree23726f7153202f6eb35e0388909da893d8f9c24c
parent9693d4c3f0d0e8c91e4748eb1c18799b1de7551c
ARM estimateStackSize() needs to account for simplified call frames.

If the function allocates reserved stack space for callee argument frames,
estimateStackSize() needs to account for that, as it doesn't show up as
ordinary frame objects. Otherwise, a callee with a large argument list will
throw off the calculations for whether to allocate an emergency spill slot
and we get assert() failures in the register scavenger.

rdar://9715469

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134415 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMFrameLowering.cpp