[llvm-commits] [llvm] r47452 - /llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
Bill Wendling
isanbard at gmail.com
Thu Feb 21 11:33:53 PST 2008
Author: void
Date: Thu Feb 21 13:33:53 2008
New Revision: 47452
URL: http://llvm.org/viewvc/llvm-project?rev=47452&view=rev
Log:
Adjust the MaxAlignment for the special register scavenging spill slot.
Modified:
llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
Modified: llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp?rev=47452&r1=47451&r2=47452&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp (original)
+++ llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp Thu Feb 21 13:33:53 2008
@@ -438,6 +438,9 @@
Offset += FFI->getObjectSize(SFI);
unsigned Align = FFI->getObjectAlignment(SFI);
+ // If the alignment of this object is greater than that of the
+ // stack, then increase the stack alignment to match.
+ MaxAlign = std::max(MaxAlign, Align);
// Adjust to alignment boundary
Offset = (Offset+Align-1)/Align*Align;
More information about the llvm-commits
mailing list