mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
We not align the final stack slot but instead let the target do so in emitPrologue(). Each target can make adjustments to the stack frame and re-align the stack as it deem appropriate. Do not align it twice which can end up wasting stack space.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33387 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
56427031f6
commit
57a2306074
@ -387,13 +387,6 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Align the final stack pointer offset, but only if there are calls in the
|
||||
// function. This ensures that any calls to subroutines have their stack
|
||||
// frames suitable aligned.
|
||||
if (FFI->hasCalls())
|
||||
Offset = (Offset+StackAlignment-1)/StackAlignment*StackAlignment;
|
||||
|
||||
// Set the final value of the stack pointer...
|
||||
FFI->setStackSize(Offset+TFI.getOffsetOfLocalArea());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user