[llvm] [AMDGPU] Fix ISel crash on llvm.amdgcn.class with bf16 operand (PR #210971)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 21 05:48:58 PDT 2026


================
@@ -11185,9 +11185,14 @@ SDValue SITargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
   case Intrinsic::amdgcn_fract:
     return DAG.getNode(AMDGPUISD::FRACT, DL, VT, Op.getOperand(1));
 
-  case Intrinsic::amdgcn_class:
-    return DAG.getNode(AMDGPUISD::FP_CLASS, DL, VT, Op.getOperand(1),
-                       Op.getOperand(2));
+  case Intrinsic::amdgcn_class: {
+    SDValue Src = Op.getOperand(1);
----------------
arsenm wrote:

Target intrinsics should in general not undergo type legalization. This should just error if it's not legal 

https://github.com/llvm/llvm-project/pull/210971


More information about the llvm-commits mailing list