[llvm] 00709c3 - AArch64: Fix hardcoding calling convention of sincos_stret (NFC) (#144336)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 02:44:35 PDT 2025


Author: Matt Arsenault
Date: 2025-06-17T18:44:32+09:00
New Revision: 00709c306d0a0f60d169ab25f612ed6715e16743

URL: https://github.com/llvm/llvm-project/commit/00709c306d0a0f60d169ab25f612ed6715e16743
DIFF: https://github.com/llvm/llvm-project/commit/00709c306d0a0f60d169ab25f612ed6715e16743.diff

LOG: AArch64: Fix hardcoding calling convention of sincos_stret (NFC) (#144336)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index c7ffc39b5b162..1169efce3123f 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -5061,9 +5061,10 @@ SDValue AArch64TargetLowering::LowerFSINCOS(SDValue Op,
 
   StructType *RetTy = StructType::get(ArgTy, ArgTy);
   TargetLowering::CallLoweringInfo CLI(DAG);
+  CallingConv::ID CC = getLibcallCallingConv(LC);
   CLI.setDebugLoc(dl)
       .setChain(DAG.getEntryNode())
-      .setLibCallee(CallingConv::Fast, RetTy, Callee, std::move(Args));
+      .setLibCallee(CC, RetTy, Callee, std::move(Args));
 
   std::pair<SDValue, SDValue> CallResult = LowerCallTo(CLI);
   return CallResult.first;


        


More information about the llvm-commits mailing list