mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Adjust the MaxAlignment for the special register scavenging spill slot.
llvm-svn: 47452
This commit is contained in:
parent
8072166220
commit
82f9e2d468
@ -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…
Reference in New Issue
Block a user