diff options
author | Jim Grosbach <grosbach@apple.com> | 2009-11-04 22:41:00 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2009-11-04 22:41:00 +0000 |
commit | c5848f4ced8f9174e7141c0d2589acaafa13ff35 (patch) | |
tree | 90eaf955b3d64f53036cfa1aa90e181bc85739cf /lib | |
parent | 33db5082836bfe6257f9a36e16aecb062076837d (diff) | |
download | external_llvm-c5848f4ced8f9174e7141c0d2589acaafa13ff35.zip external_llvm-c5848f4ced8f9174e7141c0d2589acaafa13ff35.tar.gz external_llvm-c5848f4ced8f9174e7141c0d2589acaafa13ff35.tar.bz2 |
dynamic stack realignment necessitates scanning the floating point callee-
saved instructions even if no stack adjustment for those saves is needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMBaseRegisterInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/lib/Target/ARM/ARMBaseRegisterInfo.cpp index c1c531c..7dd21ecb0 100644 --- a/lib/Target/ARM/ARMBaseRegisterInfo.cpp +++ b/lib/Target/ARM/ARMBaseRegisterInfo.cpp @@ -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); } |