diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-01-20 02:07:13 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-01-20 02:07:13 +0000 |
commit | 57a2306074989dfd6e1c0d9ddd2b5084f664e2a9 (patch) | |
tree | 197e54d54f0ef20a68734a967dea42069e39ff15 | |
parent | 56427031f60a34f8388a0facf14bea0558b8320e (diff) | |
download | external_llvm-57a2306074989dfd6e1c0d9ddd2b5084f664e2a9.zip external_llvm-57a2306074989dfd6e1c0d9ddd2b5084f664e2a9.tar.gz external_llvm-57a2306074989dfd6e1c0d9ddd2b5084f664e2a9.tar.bz2 |
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
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index 51555fa..d056da9 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -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()); |