[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 10:47:13 PDT 2022
rampitec created this revision.
rampitec added a reviewer: arsenm.
Herald added subscribers: kosarev, jsilvanus, hsmhsm, foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
Herald added a project: All.
rampitec requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.
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.433458.patch
Type: text/x-patch
Size: 664 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220601/1fba5e6c/attachment.bin>
More information about the llvm-commits
mailing list