[clang] [llvm] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #68932)
    Matt Arsenault via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Nov  9 04:53:14 PST 2023
    
    
  
================
@@ -1809,6 +1816,23 @@ bool SIInsertWaitcnts::shouldFlushVmCnt(MachineLoop *ML,
   return HasVMemLoad && UsesVgprLoadedOutside;
 }
 
+bool SIInsertWaitcnts::insertWaitcntAfterMemOp(MachineFunction &MF) {
+  bool Modified = false;
+
+  for (auto &MBB : MF) {
----------------
arsenm wrote:
Plus I think the two separate, but closely related cl::opts is confusing 
https://github.com/llvm/llvm-project/pull/68932
    
    
More information about the llvm-commits
mailing list