[llvm] 76529b4 - [X86] Simplify condition guarding emitCalleeSavedFrameMoves. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 6 15:54:06 PDT 2021
Author: Fangrui Song
Date: 2021-09-06T15:54:02-07:00
New Revision: 76529b446859af4623aa739bc6cea5cc7829dee9
URL: https://github.com/llvm/llvm-project/commit/76529b446859af4623aa739bc6cea5cc7829dee9
DIFF: https://github.com/llvm/llvm-project/commit/76529b446859af4623aa739bc6cea5cc7829dee9.diff
LOG: [X86] Simplify condition guarding emitCalleeSavedFrameMoves. 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 830f207c676b..4d25129290f8 100644
--- a/llvm/lib/Target/X86/X86FrameLowering.cpp
+++ b/llvm/lib/Target/X86/X86FrameLowering.cpp
@@ -2178,9 +2178,8 @@ void X86FrameLowering::emitEpilogue(MachineFunction &MF,
// Emit DWARF info specifying the restores of the callee-saved registers.
// For epilogue with return inside or being other block without successor,
// no need to generate .cfi_restore for callee-saved registers.
- if (NeedsDwarfCFI && !MBB.succ_empty() && !MBB.isReturnBlock()) {
+ if (NeedsDwarfCFI && !MBB.succ_empty())
emitCalleeSavedFrameMoves(MBB, AfterPop, DL, false);
- }
if (Terminator == MBB.end() || !isTailCallOpcode(Terminator->getOpcode())) {
// Add the return addr area delta back since we are not tail calling.
More information about the llvm-commits
mailing list