mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
Only allow increase of max alignment value
llvm-svn: 50168
This commit is contained in:
parent
47a8e6d7a9
commit
372e69e652
@ -417,7 +417,8 @@ X86RegisterInfo::processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
|
|||||||
|
|
||||||
// Calculate and set max stack object alignment early, so we can decide
|
// Calculate and set max stack object alignment early, so we can decide
|
||||||
// whether we will need stack realignment (and thus FP).
|
// whether we will need stack realignment (and thus FP).
|
||||||
unsigned MaxAlign = calculateMaxStackAlignment(FFI);
|
unsigned MaxAlign = std::max(FFI->getMaxAlignment(),
|
||||||
|
calculateMaxStackAlignment(FFI));
|
||||||
|
|
||||||
FFI->setMaxAlignment(MaxAlign);
|
FFI->setMaxAlignment(MaxAlign);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user