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 | 7ab6fa3a676cf28fecd6e2903ac41b286c50234c (patch) | |
tree | cafcd258a957f5096f54bbf02a343cd431ce26f0 /llvm/lib/CodeGen/PrologEpilogInserter.cpp | |
parent | 969bdf344f2dac82dcd22ed5ef224bd13c10aa93 (diff) | |
download | bcm5719-llvm-7ab6fa3a676cf28fecd6e2903ac41b286c50234c.tar.gz bcm5719-llvm-7ab6fa3a676cf28fecd6e2903ac41b286c50234c.zip |
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.
llvm-svn: 33387
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PrologEpilogInserter.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index 51555fa69eb..d056da96491 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/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()); |