================
@@ -1220,20 +1252,43 @@ void WaitcntBrackets::updateByEvent(WaitEventType E,
MachineInstr &Inst) {
setVMemScore(LDSDMA_BEGIN + Slot, T, CurrScore);
}
+ // FIXME: Not supported on GFX12 yet. Newer async operations use other
+ // counters too, so will need a map from instruction or event types to
+ // counter types.
+ if (Context->isAsyncLdsDmaWrite(Inst) && T == LOAD_CNT) {
+ assert(!SIInstrInfo::usesASYNC_CNT(Inst));
----------------
vporpo wrote:
Please add a comment in the assertion explaining why it should hold.
https://github.com/llvm/llvm-project/pull/180467
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits