llvm.org GIT mirror llvm / 9f8e50d
eliminate unnecessary reset of SP in epilog on darwin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34824 91177308-0d34-0410-b5e6-96231b3b80d8 Dale Johannesen 13 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
12891289 } else {
12901290 // Darwin ABI requires FP to point to the stack slot that contains the
12911291 // previous FP.
1292 if (STI.isTargetDarwin() || hasFP(MF)) {
1292 if ((STI.isTargetDarwin() && NumBytes) || hasFP(MF)) {
12931293 NumBytes = AFI->getFramePtrSpillOffset() - NumBytes;
12941294 // Reset SP based on frame pointer only if the stack frame extends beyond
12951295 // frame pointer stack slot or target is ELF and the function has FP.