[llvm] [AMDGPU] Omit image waits in function prologue on gfx1250 (PR #145097)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 20 12:57:33 PDT 2025
https://github.com/rampitec created https://github.com/llvm/llvm-project/pull/145097
None
>From 2fe53ffa54dcbe1b22d249277abf0ca8052574dc Mon Sep 17 00:00:00 2001
From: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
Date: Fri, 20 Jun 2025 12:53:41 -0700
Subject: [PATCH] [AMDGPU] Omit image waits in function prologue on gfx1250
---
llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp | 4 ++++
1 file changed, 4 insertions(+)
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