[llvm] [AArch64] Remove an unnecessary cast (NFC) (PR #147547)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 8 08:13:50 PDT 2025


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/147547

AfterCSRPopSize is already of int64_t.


>From 9ba16d9249cb52a075876ea3abcfc911aa62ee26 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Tue, 8 Jul 2025 07:44:07 -0700
Subject: [PATCH] [AArch64] Remove an unnecessary cast (NFC)

AfterCSRPopSize is already of int64_t.
---
 llvm/lib/Target/AArch64/AArch64FrameLowering.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
index 6f1ce5bdbe286..a7446a3ac7ce8 100644
--- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
@@ -2521,9 +2521,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