diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-02-21 19:33:53 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-02-21 19:33:53 +0000 |
commit | 20b76ab3c75fa34cd997444d2d456c2e22d4bfdd (patch) | |
tree | 140bb2ad5c2d62683b85af899dcbfaf8b966d3d9 | |
parent | 304983b93e14a3f7b84c8e41f5dfc56750dba1b0 (diff) |
Adjust the MaxAlignment for the special register scavenging spill slot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47452 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index f237cbe04d..1fec4c9f56 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -438,6 +438,9 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) { 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; |