parent
d082803948
commit
629ba44e50
|
|
@ -258,7 +258,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
|
||||||
MachineFrameInfo *FFI = Fn.getFrameInfo();
|
MachineFrameInfo *FFI = Fn.getFrameInfo();
|
||||||
|
|
||||||
unsigned StackAlignment = TFI.getStackAlignment();
|
unsigned StackAlignment = TFI.getStackAlignment();
|
||||||
unsigned MaxAlign = StackAlignment;
|
unsigned MaxAlign = 0;
|
||||||
|
|
||||||
// Start at the beginning of the local area.
|
// Start at the beginning of the local area.
|
||||||
// The Offset is the distance from the stack top in the direction
|
// The Offset is the distance from the stack top in the direction
|
||||||
|
|
@ -318,10 +318,9 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
|
||||||
|
|
||||||
// Set the final value of the stack pointer...
|
// Set the final value of the stack pointer...
|
||||||
FFI->setStackSize(Offset+TFI.getOffsetOfLocalArea());
|
FFI->setStackSize(Offset+TFI.getOffsetOfLocalArea());
|
||||||
// If we have a new stack alignment, set the preferred stack alignment so that
|
|
||||||
// the targets can do the appropriate thing to properly align the stack above
|
// Remember the required stack alignment in case targets need it to perform
|
||||||
// the default alignment.
|
// dynamic stack alignment.
|
||||||
if (MaxAlign > StackAlignment)
|
|
||||||
FFI->setMaxAlignment(MaxAlign);
|
FFI->setMaxAlignment(MaxAlign);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue