@@ -1097,7 +1097,7 @@ void WaitcntBrackets::updateByEvent(const SIInstrInfo *TII,
10971097 setRegScore (FIRST_LDS_VGPR, T, CurrScore);
10981098 }
10991099
1100- if (SIInstrInfo::asynchronouslyWritesSCC (Inst.getOpcode ())) {
1100+ if (SIInstrInfo::isSBarrierSCCWrite (Inst.getOpcode ())) {
11011101 setRegScore (SCC, T, CurrScore);
11021102 PendingSCCWrite = &Inst;
11031103 }
@@ -2069,7 +2069,7 @@ bool SIInsertWaitcnts::generateWaitcntInstBefore(MachineInstr &MI,
20692069 // TODO: Remove this work-around, enable the assert for Bug 457939
20702070 // after fixing the scheduler. Also, the Shader Compiler code is
20712071 // independent of target.
2072- if (SIInstrInfo::readsVCCZ (MI) && ST->hasReadVCCZBug () &&
2072+ if (SIInstrInfo::isCBranchVCCZRead (MI) && ST->hasReadVCCZBug () &&
20732073 ScoreBrackets.hasPendingEvent (SMEM_ACCESS)) {
20742074 Wait.DsCnt = 0 ;
20752075 }
@@ -2311,7 +2311,7 @@ void SIInsertWaitcnts::updateEventWaitcntAfter(MachineInstr &Inst,
23112311 ScoreBrackets->updateByEvent (TII, TRI, MRI, EXP_POS_ACCESS, Inst);
23122312 else
23132313 ScoreBrackets->updateByEvent (TII, TRI, MRI, EXP_GPR_LOCK, Inst);
2314- } else if (SIInstrInfo::asynchronouslyWritesSCC (Inst.getOpcode ())) {
2314+ } else if (SIInstrInfo::isSBarrierSCCWrite (Inst.getOpcode ())) {
23152315 ScoreBrackets->updateByEvent (TII, TRI, MRI, SCC_WRITE, Inst);
23162316 } else {
23172317 switch (Inst.getOpcode ()) {
@@ -2489,7 +2489,7 @@ bool SIInsertWaitcnts::insertWaitcntInBlock(MachineFunction &MF,
24892489 OldWaitcntInstr = nullptr ;
24902490
24912491 // Restore vccz if it's not known to be correct already.
2492- bool RestoreVCCZ = !VCCZCorrect && SIInstrInfo::readsVCCZ (Inst);
2492+ bool RestoreVCCZ = !VCCZCorrect && SIInstrInfo::isCBranchVCCZRead (Inst);
24932493
24942494 // Don't examine operands unless we need to track vccz correctness.
24952495 if (ST->hasReadVCCZBug () || !ST->partialVCCWritesUpdateVCCZ ()) {
0 commit comments