[llvm] c9e242f - [AMDGPU] Change GISel error handling for TFE on GFX90A
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 1 11:07:33 PDT 2022
Author: Stanislav Mekhanoshin
Date: 2022-06-01T11:07:25-07:00
New Revision: c9e242f6ddab24ad2a5cc562b39498caf23c9ef3
URL: https://github.com/llvm/llvm-project/commit/c9e242f6ddab24ad2a5cc562b39498caf23c9ef3
DIFF: https://github.com/llvm/llvm-project/commit/c9e242f6ddab24ad2a5cc562b39498caf23c9ef3.diff
LOG: [AMDGPU] Change GISel error handling for TFE on GFX90A
Differential Revision: https://reviews.llvm.org/D126797
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
index 249591f960de..32c16647ffeb 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
@@ -1723,10 +1723,12 @@ bool AMDGPUInstructionSelector::selectImageIntrinsic(
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)
More information about the llvm-commits
mailing list