[llvm] [NFC][AMDGPU] print more info when debugging InsertWaitCnts pass (PR #144629)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 21:11:29 PDT 2025


================
@@ -2437,6 +2457,12 @@ bool SIInsertWaitcnts::insertWaitcntInBlock(MachineFunction &MF,
   Modified |= generateWaitcnt(Wait, Block.instr_end(), Block, ScoreBrackets,
                               OldWaitcntInstr);
 
+  LLVM_DEBUG({
+    dbgs() << "*** Block end state: " << Block.getNumber() << ": ";
+    Block.printName(dbgs());
----------------
arsenm wrote:

Use printMBBReference 

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


More information about the llvm-commits mailing list