[llvm-branch-commits] [llvm] 4f25e53 - [AMDGPU] Make use of emitRemovedIntrinsicError. NFC.

Jay Foad via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Dec 11 06:06:46 PST 2020


Author: Jay Foad
Date: 2020-12-11T14:02:14Z
New Revision: 4f25e5398211c603e765ab6c30ab35ad286d505f

URL: https://github.com/llvm/llvm-project/commit/4f25e5398211c603e765ab6c30ab35ad286d505f
DIFF: https://github.com/llvm/llvm-project/commit/4f25e5398211c603e765ab6c30ab35ad286d505f.diff

LOG: [AMDGPU] Make use of emitRemovedIntrinsicError. NFC.

Change-Id: I482bbf528255f2eacd3878ddfe7edb9a8f63d5c2

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 1accee5ccd2a..5fb1924bdd9f 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -6588,11 +6588,7 @@ SDValue SITargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
     if (Subtarget->getGeneration() < AMDGPUSubtarget::VOLCANIC_ISLANDS)
       return SDValue();
 
-    DiagnosticInfoUnsupported BadIntrin(
-      MF.getFunction(), "intrinsic not supported on subtarget",
-      DL.getDebugLoc());
-      DAG.getContext()->diagnose(BadIntrin);
-      return DAG.getUNDEF(VT);
+    return emitRemovedIntrinsicError(DAG, DL, VT);
   }
   case Intrinsic::amdgcn_ldexp:
     return DAG.getNode(AMDGPUISD::LDEXP, DL, VT,


        


More information about the llvm-branch-commits mailing list