forked from OSchip/llvm-project
If a function has no stack frame at all, dynamic realignment isn't necessary.
llvm-svn: 86057
This commit is contained in:
parent
cc58cc1d56
commit
2c7fd8f1db
|
@ -514,6 +514,7 @@ needsStackRealignment(const MachineFunction &MF) const {
|
|||
unsigned StackAlign = MF.getTarget().getFrameInfo()->getStackAlignment();
|
||||
return (RealignStack &&
|
||||
!AFI->isThumb1OnlyFunction() &&
|
||||
AFI->hasStackFrame() &&
|
||||
(MFI->getMaxAlignment() > StackAlign) &&
|
||||
!MFI->hasVarSizedObjects());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue