mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
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
This commit is contained in:
parent
304983b93e
commit
20b76ab3c7
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user