[llvm] [WIP][AMDGPU][SIInsertWaitcnts] Do not add s_waitcnt when the counters are known to be 0 already (PR #65735)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 03:19:41 PDT 2023


================
@@ -477,7 +483,7 @@ class SIInsertWaitcnts : public MachineFunctionPass {
   bool generateWaitcnt(AMDGPU::Waitcnt Wait,
                        MachineBasicBlock::instr_iterator It,
                        MachineBasicBlock &Block, WaitcntBrackets &ScoreBrackets,
-                       MachineInstr *OldWaitcntInstr);
+                       MachineInstr *OldWaitcntInstr) const;
----------------
jayfoad wrote:

Looks like an unrelated clean up? Please commit it separately.

https://github.com/llvm/llvm-project/pull/65735


More information about the llvm-commits mailing list