[AMDGPU] Don't insert wait instructions that are not supported by gfx1250 (#145084)

No tests yet, but it will allow further tests not to be
polluted with these waits.
This commit is contained in:
Stanislav Mekhanoshin 2025-06-20 12:21:45 -07:00 committed by GitHub
parent b5d5708128
commit 958dc86026
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2272,8 +2272,10 @@ bool SIGfx12CacheControl::insertWaitsBeforeSystemScopeStore(
const DebugLoc &DL = MI->getDebugLoc(); const DebugLoc &DL = MI->getDebugLoc();
BuildMI(MBB, MI, DL, TII->get(S_WAIT_LOADCNT_soft)).addImm(0); BuildMI(MBB, MI, DL, TII->get(S_WAIT_LOADCNT_soft)).addImm(0);
BuildMI(MBB, MI, DL, TII->get(S_WAIT_SAMPLECNT_soft)).addImm(0); if (ST.hasImageInsts()) {
BuildMI(MBB, MI, DL, TII->get(S_WAIT_BVHCNT_soft)).addImm(0); BuildMI(MBB, MI, DL, TII->get(S_WAIT_SAMPLECNT_soft)).addImm(0);
BuildMI(MBB, MI, DL, TII->get(S_WAIT_BVHCNT_soft)).addImm(0);
}
BuildMI(MBB, MI, DL, TII->get(S_WAIT_KMCNT_soft)).addImm(0); BuildMI(MBB, MI, DL, TII->get(S_WAIT_KMCNT_soft)).addImm(0);
BuildMI(MBB, MI, DL, TII->get(S_WAIT_STORECNT_soft)).addImm(0); BuildMI(MBB, MI, DL, TII->get(S_WAIT_STORECNT_soft)).addImm(0);