[llvm] 4f1e410 - [X86] Simplify two hasFP(F). NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 6 15:47:45 PDT 2021
Author: Fangrui Song
Date: 2021-09-06T15:47:40-07:00
New Revision: 4f1e410a1ba10007aa96b274f92e2a6526de84d9
URL: https://github.com/llvm/llvm-project/commit/4f1e410a1ba10007aa96b274f92e2a6526de84d9
DIFF: https://github.com/llvm/llvm-project/commit/4f1e410a1ba10007aa96b274f92e2a6526de84d9.diff
LOG: [X86] Simplify two hasFP(F). NFC
Added:
Modified:
llvm/lib/Target/X86/X86FrameLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp
index 1d5cb5259f77a..830f207c676b3 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.
More information about the llvm-commits
mailing list