[llvm] 584a2c2 - AMDGPU: Avoid report_fatal_error for reporting libcalls (#145134)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 22 07:10:21 PDT 2025


Author: Matt Arsenault
Date: 2025-06-22T23:10:18+09:00
New Revision: 584a2c2e7c5474e858e644baacae859ae54c7d60

URL: https://github.com/llvm/llvm-project/commit/584a2c2e7c5474e858e644baacae859ae54c7d60
DIFF: https://github.com/llvm/llvm-project/commit/584a2c2e7c5474e858e644baacae859ae54c7d60.diff

LOG: AMDGPU: Avoid report_fatal_error for reporting libcalls (#145134)

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index b9023b6d7a3a6..6f37e2dd3aa7e 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -3805,7 +3805,7 @@ SDValue SITargetLowering::LowerCall(CallLoweringInfo &CLI,
   }
 
   if (!CLI.CB)
-    report_fatal_error("unsupported libcall legalization");
+    return lowerUnhandledCall(CLI, InVals, "unsupported libcall legalization");
 
   if (IsTailCall && MF.getTarget().Options.GuaranteedTailCallOpt) {
     return lowerUnhandledCall(CLI, InVals,


        


More information about the llvm-commits mailing list