From 4f1e410a1ba10007aa96b274f92e2a6526de84d9 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 6 Sep 2021 15:47:40 -0700 Subject: [PATCH] [X86] Simplify two hasFP(F). NFC --- llvm/lib/Target/X86/X86FrameLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp index 1d5cb5259f77..830f207c676b 100644 --- a/llvm/lib/Target/X86/X86FrameLowering.cpp +++ b/llvm/lib/Target/X86/X86FrameLowering.cpp @@ -2140,7 +2140,7 @@ void X86FrameLowering::emitEpilogue(MachineFunction &MF, } else if (NumBytes) { // Adjust stack pointer back: ESP += numbytes. emitSPUpdate(MBB, MBBI, DL, NumBytes, /*InEpilogue=*/true); - if (!hasFP(MF) && NeedsDwarfCFI) { + if (!HasFP && NeedsDwarfCFI) { // Define the current CFA rule to use the provided offset. BuildCFI(MBB, MBBI, DL, MCCFIInstruction::cfiDefCfaOffset( @@ -2158,7 +2158,7 @@ void X86FrameLowering::emitEpilogue(MachineFunction &MF, if (NeedsWin64CFI && MF.hasWinCFI()) BuildMI(MBB, MBBI, DL, TII.get(X86::SEH_Epilogue)); - if (!hasFP(MF) && NeedsDwarfCFI) { + if (!HasFP && NeedsDwarfCFI) { MBBI = FirstCSPop; int64_t Offset = -CSSize - SlotSize; // Mark callee-saved pop instruction.