Skip to content

Commit cbc4be2

Browse files
committed
[AMDGPU] Use MachineInstr::mayLoadOrStore. NFC.
1 parent 81fee74 commit cbc4be2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ void WaitcntBrackets::updateByEvent(const SIInstrInfo *TII,
823823
if (T == EXP_CNT) {
824824
// Put score on the source vgprs. If this is a store, just use those
825825
// specific register(s).
826-
if (TII->isDS(Inst) && (Inst.mayStore() || Inst.mayLoad())) {
826+
if (TII->isDS(Inst) && Inst.mayLoadOrStore()) {
827827
// All GDS operations must protect their address register (same as
828828
// export.)
829829
if (const auto *AddrOp = TII->getNamedOperand(Inst, AMDGPU::OpName::addr))

0 commit comments

Comments
 (0)