[llvm-commits] CVS: llvm/lib/CodeGen/PrologEpilogInserter.cpp
Evan Cheng
evan.cheng at apple.com
Fri Jan 19 18:07:28 PST 2007
Changes in directory llvm/lib/CodeGen:
PrologEpilogInserter.cpp updated: 1.63 -> 1.64
---
Log message:
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.
---
Diffs of the changes: (+0 -7)
PrologEpilogInserter.cpp | 7 -------
1 files changed, 7 deletions(-)
Index: llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff -u llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.63 llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.64
--- llvm/lib/CodeGen/PrologEpilogInserter.cpp:1.63 Tue Jan 2 15:31:15 2007
+++ llvm/lib/CodeGen/PrologEpilogInserter.cpp Fri Jan 19 20:07:13 2007
@@ -387,13 +387,6 @@
}
}
-
- // 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());
More information about the llvm-commits
mailing list