diff options
author | Dale Johannesen <dalej@apple.com> | 2008-06-30 20:40:16 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-06-30 20:40:16 +0000 |
commit | edec8d89dfaebd7050df4acafe3d01fa755ffd0d (patch) | |
tree | 69b84809e1970cd0ea0eaa60a266bbb28ca3f5ef /lib/CodeGen/PrologEpilogInserter.cpp | |
parent | fdb99838a30eba6ee4e7ae8c8077b4f8d62cf560 (diff) |
No need to align the stack if there are no stack
objects. Fixes a couple of tests on Linux.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index 10ba9c0256..95b6078335 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -464,7 +464,8 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) { // works. if (!RegInfo->targetHandlesStackFrameRounding() && (FFI->hasCalls() || FFI->hasVarSizedObjects() || - RegInfo->needsStackRealignment(Fn))) { + (RegInfo->needsStackRealignment(Fn) && + FFI->getObjectIndexEnd() != 0))) { // If we have reserved argument space for call sites in the function // immediately on entry to the current function, count it as part of the // overall stack size. |