mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
If a function has no stack frame at all, dynamic realignment isn't necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86057 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -514,6 +514,7 @@ needsStackRealignment(const MachineFunction &MF) const {
|
|||||||
unsigned StackAlign = MF.getTarget().getFrameInfo()->getStackAlignment();
|
unsigned StackAlign = MF.getTarget().getFrameInfo()->getStackAlignment();
|
||||||
return (RealignStack &&
|
return (RealignStack &&
|
||||||
!AFI->isThumb1OnlyFunction() &&
|
!AFI->isThumb1OnlyFunction() &&
|
||||||
|
AFI->hasStackFrame() &&
|
||||||
(MFI->getMaxAlignment() > StackAlign) &&
|
(MFI->getMaxAlignment() > StackAlign) &&
|
||||||
!MFI->hasVarSizedObjects());
|
!MFI->hasVarSizedObjects());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user