summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-01-20 02:07:13 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-01-20 02:07:13 +0000
commit7ab6fa3a676cf28fecd6e2903ac41b286c50234c (patch)
treecafcd258a957f5096f54bbf02a343cd431ce26f0 /llvm/lib/CodeGen/PrologEpilogInserter.cpp
parent969bdf344f2dac82dcd22ed5ef224bd13c10aa93 (diff)
downloadbcm5719-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.cpp7
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());
OpenPOWER on IntegriCloud