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 | 963192f40b661d5d00e7c4867fab57e8b3491120 (patch) | |
| tree | 48b40bad9dd7583f3b37e79183a7221c19a2da95 | |
| parent | d45d38d2b7160977d2783b4839b7452a026a7b3b (diff) | |
| download | bcm5719-llvm-963192f40b661d5d00e7c4867fab57e8b3491120.tar.gz bcm5719-llvm-963192f40b661d5d00e7c4867fab57e8b3491120.zip | |
Adjust the MaxAlignment for the special register scavenging spill slot.
llvm-svn: 47452
| -rw-r--r-- | llvm/lib/CodeGen/PrologEpilogInserter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index f237cbe04d6..1fec4c9f562 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/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; |

