================ @@ -2130,13 +2140,14 @@ void SIInsertWaitcnts::updateEventWaitcntAfter(MachineInstr &Inst, ScoreBrackets->updateByEvent(TII, TRI, MRI, LDS_ACCESS, Inst); } } else if (TII->isFLAT(Inst)) { - // TODO: Track this properly. - if (isCacheInvOrWBInst(Inst)) + if (isGFX12CacheInvOrWBInst(Inst)) { + ScoreBrackets->updateByEvent(TII, TRI, MRI, getVmemWaitEventType(Inst), + Inst); return; - - assert(Inst.mayLoadOrStore()); + } int FlatASCount = 0; + assert(Inst.mayLoadOrStore()); ---------------- jayfoad wrote:
Nit: why move this? https://github.com/llvm/llvm-project/pull/135340 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits