[llvm] 1a4d983 - [AArch64] Remove an unnecessary cast (NFC) (#147547)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 8 12:47:15 PDT 2025


Author: Kazu Hirata
Date: 2025-07-08T12:47:11-07:00
New Revision: 1a4d983cb78da1d5d8e66b9476020ea5de13dc12

URL: https://github.com/llvm/llvm-project/commit/1a4d983cb78da1d5d8e66b9476020ea5de13dc12
DIFF: https://github.com/llvm/llvm-project/commit/1a4d983cb78da1d5d8e66b9476020ea5de13dc12.diff

LOG: [AArch64] Remove an unnecessary cast (NFC) (#147547)

AfterCSRPopSize is already of int64_t.

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 d481389d6dfc3..b91e5c55e520d 100644
--- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
@@ -2563,9 +2563,9 @@ void AArch64FrameLowering::emitEpilogue(MachineFunction &MF,
           .buildDefCFA(AArch64::SP, NumBytes);
 
     emitFrameOffset(MBB, MBB.getFirstTerminator(), DL, AArch64::SP, AArch64::SP,
-                    StackOffset::getFixed(NumBytes + (int64_t)AfterCSRPopSize),
-                    TII, MachineInstr::FrameDestroy, false, NeedsWinCFI,
-                    &HasWinCFI, EmitCFI, StackOffset::getFixed(NumBytes));
+                    StackOffset::getFixed(NumBytes + AfterCSRPopSize), TII,
+                    MachineInstr::FrameDestroy, false, NeedsWinCFI, &HasWinCFI,
+                    EmitCFI, StackOffset::getFixed(NumBytes));
     return;
   }
 


        


More information about the llvm-commits mailing list