[llvm] AMDGPU: Avoid report_fatal_error in image intrinsic lowering (PR #145201)

Sebastian Neubauer via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 25 04:23:24 PDT 2025


================
@@ -8668,11 +8668,15 @@ SDValue SITargetLowering::lowerImage(SDValue Op,
                     : False);
   if (IsGFX10Plus)
     Ops.push_back(IsA16 ? True : False);
-  if (!Subtarget->hasGFX90AInsts()) {
+
+  if (!Subtarget->hasGFX90AInsts())
     Ops.push_back(TFE); // tfe
-  } else if (TFE->getAsZExtVal()) {
-    report_fatal_error("TFE is not supported on this GPU");
+  else if (TFE->getAsZExtVal()) {
----------------
Flakebi wrote:

nit: if should have braces if the else has them.

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


More information about the llvm-commits mailing list