[llvm] [AMDGPU][SIInsertWaitcnts][NFC] Common InstCounterType printer (PR #187559)

Sameer Sahasrabuddhe via llvm-commits llvm-commits at lists.llvm.org
Wed May 6 02:06:00 PDT 2026


================
@@ -1625,7 +1552,9 @@ AMDGPU::Waitcnt WaitcntBrackets::determineAsyncWait(unsigned N) {
   });
   AsyncMarks.erase(AsyncMarks.begin(), AsyncMarks.begin() + MarkIndex + 1);
 
-  LLVM_DEBUG(dbgs() << "Waits to add: " << Wait);
+  LLVM_DEBUG(
+      dbgs() << "Waits to add: "
----------------
ssahasra wrote:

A perfectly good `ostream` operator got replaced by this verbose monstrosity. There's really no reason to go to such lengths, when the simple solution is to just eliminate the old names and move on.

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


More information about the llvm-commits mailing list