forked from OSchip/llvm-project
dynamic stack realignment necessitates scanning the floating point callee-
saved instructions even if no stack adjustment for those saves is needed. llvm-svn: 86056
This commit is contained in:
parent
b082bab69e
commit
cc58cc1d56
|
@ -1339,10 +1339,10 @@ emitPrologue(MachineFunction &MF) const {
|
||||||
AFI->setGPRCalleeSavedArea2Offset(GPRCS2Offset);
|
AFI->setGPRCalleeSavedArea2Offset(GPRCS2Offset);
|
||||||
AFI->setDPRCalleeSavedAreaOffset(DPRCSOffset);
|
AFI->setDPRCalleeSavedAreaOffset(DPRCSOffset);
|
||||||
|
|
||||||
|
movePastCSLoadStoreOps(MBB, MBBI, ARM::FSTD, 0, 3, STI);
|
||||||
NumBytes = DPRCSOffset;
|
NumBytes = DPRCSOffset;
|
||||||
if (NumBytes) {
|
if (NumBytes) {
|
||||||
// Insert it after all the callee-save spills.
|
// Adjust SP after all the callee-save spills.
|
||||||
movePastCSLoadStoreOps(MBB, MBBI, ARM::FSTD, 0, 3, STI);
|
|
||||||
emitSPUpdate(isARM, MBB, MBBI, dl, TII, -NumBytes);
|
emitSPUpdate(isARM, MBB, MBBI, dl, TII, -NumBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue