[PATCH] D126797: [AMDGPU] Change GISel error handling for TFE on GFX90A

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 11:07:36 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc9e242f6ddab: [AMDGPU] Change GISel error handling for TFE on GFX90A (authored by rampitec).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126797/new/

https://reviews.llvm.org/D126797

Files:
  llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp


Index: llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+++ llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
@@ -1723,10 +1723,12 @@
   if (IsGFX10Plus)
     MIB.addImm(IsA16 ? -1 : 0);
 
-  if (!Subtarget->hasGFX90AInsts())
+  if (!Subtarget->hasGFX90AInsts()) {
     MIB.addImm(TFE); // tfe
-  else if (TFE)
-    report_fatal_error("TFE is not supported on this GPU");
+  } else if (TFE) {
+    LLVM_DEBUG(dbgs() << "TFE is not supported on this GPU\n");
+    return false;
+  }
 
   MIB.addImm(LWE); // lwe
   if (!IsGFX10Plus)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126797.433463.patch
Type: text/x-patch
Size: 664 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220601/cd9e3bc4/attachment.bin>


More information about the llvm-commits mailing list