[llvm] cbc4be2 - [AMDGPU] Use MachineInstr::mayLoadOrStore. NFC.

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 14 07:40:37 PDT 2024


Author: Jay Foad
Date: 2024-10-14T15:37:56+01:00
New Revision: cbc4be2dd5b101aa362efc960541ded65a4c0ff7

URL: https://github.com/llvm/llvm-project/commit/cbc4be2dd5b101aa362efc960541ded65a4c0ff7
DIFF: https://github.com/llvm/llvm-project/commit/cbc4be2dd5b101aa362efc960541ded65a4c0ff7.diff

LOG: [AMDGPU] Use MachineInstr::mayLoadOrStore. NFC.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index 0762bcf4353df3..1070c14f7a987f 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -823,7 +823,7 @@ void WaitcntBrackets::updateByEvent(const SIInstrInfo *TII,
   if (T == EXP_CNT) {
     // Put score on the source vgprs. If this is a store, just use those
     // specific register(s).
-    if (TII->isDS(Inst) && (Inst.mayStore() || Inst.mayLoad())) {
+    if (TII->isDS(Inst) && Inst.mayLoadOrStore()) {
       // All GDS operations must protect their address register (same as
       // export.)
       if (const auto *AddrOp = TII->getNamedOperand(Inst, AMDGPU::OpName::addr))


        


More information about the llvm-commits mailing list