[llvm] 4e86b00 - [AMDGPU] Remove #if 0 code for buffer stores in SIInsertWaitcnts (#92903)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 21 05:33:53 PDT 2024


Author: Jay Foad
Date: 2024-05-21T13:33:49+01:00
New Revision: 4e86b0006b639f10df108a885a54ff0eddb40217

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

LOG: [AMDGPU] Remove #if 0 code for buffer stores in SIInsertWaitcnts (#92903)

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 4799b4cb20892..0a50973e939b0 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -900,18 +900,6 @@ void WaitcntBrackets::updateByEvent(const SIInstrInfo *TII,
         }
       }
     }
-#if 0 // TODO: check if this is handled by MUBUF code above.
-  } else if (Inst.getOpcode() == AMDGPU::BUFFER_STORE_DWORD ||
-       Inst.getOpcode() == AMDGPU::BUFFER_STORE_DWORDX2 ||
-       Inst.getOpcode() == AMDGPU::BUFFER_STORE_DWORDX4) {
-    MachineOperand *MO = TII->getNamedOperand(Inst, AMDGPU::OpName::data);
-    unsigned OpNo;//TODO: find the OpNo for this operand;
-    RegInterval Interval = getRegInterval(&Inst, MRI, TRI, OpNo);
-    for (int RegNo = Interval.first; RegNo < Interval.second;
-    ++RegNo) {
-      setRegScore(RegNo + NUM_ALL_VGPRS, t, CurrScore);
-    }
-#endif
   } else /* LGKM_CNT || EXP_CNT || VS_CNT || NUM_INST_CNTS */ {
     // Match the score to the destination registers.
     for (unsigned I = 0, E = Inst.getNumOperands(); I != E; ++I) {


        


More information about the llvm-commits mailing list