Skip to content

Commit f4ba8f8

Browse files
rampitecJaddyen
authored andcommitted
[AMDGPU] Omit image waits in function prologue on gfx1250 (llvm#145097)
1 parent bccd573 commit f4ba8f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2681,6 +2681,10 @@ bool SIInsertWaitcnts::run(MachineFunction &MF) {
26812681
if (CT == LOAD_CNT || CT == DS_CNT || CT == STORE_CNT)
26822682
continue;
26832683

2684+
if (!ST->hasImageInsts() &&
2685+
(CT == EXP_CNT || CT == SAMPLE_CNT || CT == BVH_CNT))
2686+
continue;
2687+
26842688
BuildMI(EntryBB, I, DebugLoc(),
26852689
TII->get(instrsForExtendedCounterTypes[CT]))
26862690
.addImm(0);

0 commit comments

Comments
 (0)