aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Mekhanoshin <rampitec@users.noreply.github.com>2025-06-20 14:11:29 -0700
committerGitHub <noreply@github.com>2025-06-20 14:11:29 -0700
commit0c2191b3a79d91d1115b1dbc1a9bd39daed1d9c5 (patch)
tree1d0d6313c7936022be3c4a09fa7150fcfe610926
parent4c97a91dc085fba40e5a86c4da8feeffd15b1f8a (diff)
downloadllvm-0c2191b3a79d91d1115b1dbc1a9bd39daed1d9c5.zip
llvm-0c2191b3a79d91d1115b1dbc1a9bd39daed1d9c5.tar.gz
llvm-0c2191b3a79d91d1115b1dbc1a9bd39daed1d9c5.tar.bz2
[AMDGPU] Omit image waits in function prologue on gfx1250 (#145097)
-rw-r--r--llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index f7b88bf..a60e210 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -2681,6 +2681,10 @@ bool SIInsertWaitcnts::run(MachineFunction &MF) {
if (CT == LOAD_CNT || CT == DS_CNT || CT == STORE_CNT)
continue;
+ if (!ST->hasImageInsts() &&
+ (CT == EXP_CNT || CT == SAMPLE_CNT || CT == BVH_CNT))
+ continue;
+
BuildMI(EntryBB, I, DebugLoc(),
TII->get(instrsForExtendedCounterTypes[CT]))
.addImm(0);