[llvm] 0e03450 - [AArch64] Remove an uneeded !NeedsWinCFI check. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 5 21:03:01 PDT 2021


Author: Fangrui Song
Date: 2021-09-05T21:02:56-07:00
New Revision: 0e03450ae4358e8a8242b73d493d96efea9d3ccf

URL: https://github.com/llvm/llvm-project/commit/0e03450ae4358e8a8242b73d493d96efea9d3ccf
DIFF: https://github.com/llvm/llvm-project/commit/0e03450ae4358e8a8242b73d493d96efea9d3ccf.diff

LOG: [AArch64] Remove an uneeded !NeedsWinCFI check. NFC

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64FrameLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
index f6a528c0e6fd..779a3b0c4ef9 100644
--- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
@@ -1205,7 +1205,7 @@ void AArch64FrameLowering::emitPrologue(MachineFunction &MF,
       emitFrameOffset(MBB, MBBI, DL, AArch64::SP, AArch64::SP,
                       StackOffset::getFixed(-NumBytes), TII,
                       MachineInstr::FrameSetup, false, NeedsWinCFI, &HasWinCFI);
-      if (!NeedsWinCFI && needsFrameMoves) {
+      if (needsFrameMoves) {
         // Label used to tie together the PROLOG_LABEL and the MachineMoves.
         MCSymbol *FrameLabel = MMI.getContext().createTempSymbol();
           // Encode the stack size of the leaf function.


        


More information about the llvm-commits mailing list