mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
[Hexagon] Require PS_aligna whenever variable-sized objects are present
This commit is contained in:
parent
477ae4e17b
commit
0ce37ce8eb
@ -2388,9 +2388,9 @@ bool HexagonFrameLowering::needsAligna(const MachineFunction &MF) const {
|
||||
const MachineFrameInfo &MFI = MF.getFrameInfo();
|
||||
if (!MFI.hasVarSizedObjects())
|
||||
return false;
|
||||
unsigned MaxA = MFI.getMaxAlignment();
|
||||
if (MaxA <= getStackAlignment())
|
||||
return false;
|
||||
// Do not check for max stack object alignment here, because the stack
|
||||
// may not be complete yet. Assume that we will need PS_aligna if there
|
||||
// are variable-sized objects.
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user