llvm.org GIT mirror llvm / fc63300
Check the local frame alignment for determining whether dynamic stack alignment should be performed. Otherwise dynamic realignment may trigger when the register allocator has already used the frame pointer as a general purpose register. That is, we need to make sure that the list of reserved registers doesn't change after register allocation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112986 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 10 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
638638 const Function *F = MF.getFunction();
639639 const ARMFunctionInfo *AFI = MF.getInfo();
640640 unsigned StackAlign = MF.getTarget().getFrameInfo()->getStackAlignment();
641 bool requiresRealignment = ((MFI->getMaxAlignment() > StackAlign) ||
641 bool requiresRealignment = ((MFI->getLocalFrameMaxAlign() > StackAlign) ||
642642 F->hasFnAttr(Attribute::StackAlignment));
644644 // FIXME: Currently we don't support stack realignment for functions with