We not align the final stack slot but instead let the target do so in emitPrologue...
authorEvan Cheng <evan.cheng@apple.com>
Sat, 20 Jan 2007 02:07:13 +0000 (02:07 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 20 Jan 2007 02:07:13 +0000 (02:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33387 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PrologEpilogInserter.cpp

index 51555fa69ebe12a23fdd6f6aa248c6d233287df1..d056da964913617ef3d0146fc12d6dd2e296652a 100644 (file)
@@ -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());