projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
304983b
)
Adjust the MaxAlignment for the special register scavenging spill slot.
author
Bill Wendling
<isanbard@gmail.com>
Thu, 21 Feb 2008 19:33:53 +0000
(19:33 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Thu, 21 Feb 2008 19:33:53 +0000
(19:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47452
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/PrologEpilogInserter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/PrologEpilogInserter.cpp
b/lib/CodeGen/PrologEpilogInserter.cpp
index f237cbe04d660703b06af6b0231d6ceacb235399..1fec4c9f5629053f7076cbc40fc800683af018e8 100644
(file)
--- 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;