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:
Jim Grosbach 2009-11-04 22:41:00 +00:00
parent b082bab69e
commit cc58cc1d56
1 changed files with 2 additions and 2 deletions

View File

@ -1339,10 +1339,10 @@ emitPrologue(MachineFunction &MF) const {
AFI->setGPRCalleeSavedArea2Offset(GPRCS2Offset);
AFI->setDPRCalleeSavedAreaOffset(DPRCSOffset);
movePastCSLoadStoreOps(MBB, MBBI, ARM::FSTD, 0, 3, STI);
NumBytes = DPRCSOffset;
if (NumBytes) {
// Insert it after all the callee-save spills.
movePastCSLoadStoreOps(MBB, MBBI, ARM::FSTD, 0, 3, STI);
// Adjust SP after all the callee-save spills.
emitSPUpdate(isARM, MBB, MBBI, dl, TII, -NumBytes);
}