diff options
author | Sander de Smalen <sander.desmalen@arm.com> | 2019-10-28 09:49:48 +0000 |
---|---|---|
committer | Sander de Smalen <sander.desmalen@arm.com> | 2019-10-28 18:05:19 +0000 |
commit | 70f5aecedef9a6e347e425eb5b843bf797b95319 (patch) | |
tree | ec68306a2de8f8987227478bcff9511320310a2b /llvm/lib/Target/ARM/ARMFrameLowering.cpp | |
parent | 18824d25d8aa8727d9f64f8002f2533d57627bd5 (diff) | |
download | bcm5719-llvm-70f5aecedef9a6e347e425eb5b843bf797b95319.tar.gz bcm5719-llvm-70f5aecedef9a6e347e425eb5b843bf797b95319.zip |
Reland [AArch64][DebugInfo] Do not recompute CalleeSavedStackSize (Take 2)
Fixed up test/DebugInfo/MIR/Mips/live-debug-values-reg-copy.mir that
broke r375425.
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMFrameLowering.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp index 01ae93086dc..5428bd6c94b 100644 --- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp +++ b/llvm/lib/Target/ARM/ARMFrameLowering.cpp @@ -2128,10 +2128,16 @@ void ARMFrameLowering::determineCalleeSaves(MachineFunction &MF, AFI->setLRIsSpilledForFarJump(true); } AFI->setLRIsSpilled(SavedRegs.test(ARM::LR)); +} + +void ARMFrameLowering::getCalleeSaves(const MachineFunction &MF, + BitVector &SavedRegs) const { + TargetFrameLowering::getCalleeSaves(MF, SavedRegs); // If we have the "returned" parameter attribute which guarantees that we // return the value which was passed in r0 unmodified (e.g. C++ 'structors), // record that fact for IPRA. + const ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); if (AFI->getPreservesR0()) SavedRegs.set(ARM::R0); } |