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 | 659aeb6186a0904fc6b3ade44ddeb4caf6542266 (patch) | |
| tree | 97148ef41c609e09668aae6d92b91116f8db5409 /llvm/lib/CodeGen | |
| parent | d206e2ac2a2e14e9f4e8d44da36861f5e3f1b58b (diff) | |
| download | bcm5719-llvm-659aeb6186a0904fc6b3ade44ddeb4caf6542266.tar.gz bcm5719-llvm-659aeb6186a0904fc6b3ade44ddeb4caf6542266.zip | |
No need to align the stack if there are no stack
objects. Fixes a couple of tests on Linux.
llvm-svn: 52921
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/PrologEpilogInserter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index 10ba9c0256f..95b6078335b 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/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. |

