diff options
| author | Sander de Smalen <sander.desmalen@arm.com> | 2019-10-21 19:11:40 +0000 |
|---|---|---|
| committer | Sander de Smalen <sander.desmalen@arm.com> | 2019-10-21 19:11:40 +0000 |
| commit | 8f2dac471ad9acb751f8424e3c2dd13d5a709e15 (patch) | |
| tree | 456f12f086f5c31d8aba6987ef2a8006922764c2 /llvm/lib/Target/AArch64/AArch64FrameLowering.cpp | |
| parent | 502a509e478a5e6625b58d87b484aacd2387c64d (diff) | |
| download | bcm5719-llvm-8f2dac471ad9acb751f8424e3c2dd13d5a709e15.tar.gz bcm5719-llvm-8f2dac471ad9acb751f8424e3c2dd13d5a709e15.zip | |
Reverted r375425 as it broke some buildbots.
llvm-svn: 375444
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64FrameLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64FrameLowering.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp index 042d8fdcc51..68e1e6a3022 100644 --- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp @@ -1588,8 +1588,7 @@ static StackOffset getFPOffset(const MachineFunction &MF, int ObjectOffset) { bool IsWin64 = Subtarget.isCallingConvWin64(MF.getFunction().getCallingConv()); unsigned FixedObject = IsWin64 ? alignTo(AFI->getVarArgsGPRSize(), 16) : 0; - unsigned FPAdjust = isTargetDarwin(MF) - ? 16 : AFI->getCalleeSavedStackSize(MF.getFrameInfo()); + unsigned FPAdjust = isTargetDarwin(MF) ? 16 : AFI->getCalleeSavedStackSize(); return {ObjectOffset + FixedObject + FPAdjust, MVT::i8}; } @@ -1631,7 +1630,7 @@ StackOffset AArch64FrameLowering::resolveFrameOffsetReference( int FPOffset = getFPOffset(MF, ObjectOffset).getBytes(); int Offset = getStackOffset(MF, ObjectOffset).getBytes(); bool isCSR = - !isFixed && ObjectOffset >= -((int)AFI->getCalleeSavedStackSize(MFI)); + !isFixed && ObjectOffset >= -((int)AFI->getCalleeSavedStackSize()); const StackOffset &SVEStackSize = getSVEStackSize(MF); @@ -2305,10 +2304,6 @@ void AArch64FrameLowering::determineCalleeSaves(MachineFunction &MF, << EstimatedStackSize + AlignedCSStackSize << " bytes.\n"); - assert((!MFI.isCalleeSavedInfoValid() || - AFI->getCalleeSavedStackSize() == AlignedCSStackSize) && - "Should not invalidate callee saved info"); - // Round up to register pair alignment to avoid additional SP adjustment // instructions. AFI->setCalleeSavedStackSize(AlignedCSStackSize); |

