From 7ab6fa3a676cf28fecd6e2903ac41b286c50234c Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sat, 20 Jan 2007 02:07:13 +0000 Subject: 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 --- llvm/lib/CodeGen/PrologEpilogInserter.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp') 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()); -- cgit v1.2.3