forked from OSchip/llvm-project
[X86] Simplify two hasFP(F). NFC
This commit is contained in:
parent
ac5a5af19d
commit
4f1e410a1b
|
@ -2140,7 +2140,7 @@ void X86FrameLowering::emitEpilogue(MachineFunction &MF,
|
||||||
} else if (NumBytes) {
|
} else if (NumBytes) {
|
||||||
// Adjust stack pointer back: ESP += numbytes.
|
// Adjust stack pointer back: ESP += numbytes.
|
||||||
emitSPUpdate(MBB, MBBI, DL, NumBytes, /*InEpilogue=*/true);
|
emitSPUpdate(MBB, MBBI, DL, NumBytes, /*InEpilogue=*/true);
|
||||||
if (!hasFP(MF) && NeedsDwarfCFI) {
|
if (!HasFP && NeedsDwarfCFI) {
|
||||||
// Define the current CFA rule to use the provided offset.
|
// Define the current CFA rule to use the provided offset.
|
||||||
BuildCFI(MBB, MBBI, DL,
|
BuildCFI(MBB, MBBI, DL,
|
||||||
MCCFIInstruction::cfiDefCfaOffset(
|
MCCFIInstruction::cfiDefCfaOffset(
|
||||||
|
@ -2158,7 +2158,7 @@ void X86FrameLowering::emitEpilogue(MachineFunction &MF,
|
||||||
if (NeedsWin64CFI && MF.hasWinCFI())
|
if (NeedsWin64CFI && MF.hasWinCFI())
|
||||||
BuildMI(MBB, MBBI, DL, TII.get(X86::SEH_Epilogue));
|
BuildMI(MBB, MBBI, DL, TII.get(X86::SEH_Epilogue));
|
||||||
|
|
||||||
if (!hasFP(MF) && NeedsDwarfCFI) {
|
if (!HasFP && NeedsDwarfCFI) {
|
||||||
MBBI = FirstCSPop;
|
MBBI = FirstCSPop;
|
||||||
int64_t Offset = -CSSize - SlotSize;
|
int64_t Offset = -CSSize - SlotSize;
|
||||||
// Mark callee-saved pop instruction.
|
// Mark callee-saved pop instruction.
|
||||||
|
|
Loading…
Reference in New Issue