[llvm] 0c2191b - [AMDGPU] Omit image waits in function prologue on gfx1250 (#145097)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 20 14:11:32 PDT 2025
Author: Stanislav Mekhanoshin
Date: 2025-06-20T14:11:29-07:00
New Revision: 0c2191b3a79d91d1115b1dbc1a9bd39daed1d9c5
URL: https://github.com/llvm/llvm-project/commit/0c2191b3a79d91d1115b1dbc1a9bd39daed1d9c5
DIFF: https://github.com/llvm/llvm-project/commit/0c2191b3a79d91d1115b1dbc1a9bd39daed1d9c5.diff
LOG: [AMDGPU] Omit image waits in function prologue on gfx1250 (#145097)
Added:
Modified:
llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index f7b88bf2d5ebc..a60e2102d4e8c 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);
More information about the llvm-commits
mailing list