[Mlir-commits] [mlir] [mlir] Use LDBG to replace LLVM_DEBUG (NFC) (PR #166733)

Mehdi Amini llvmlistbot at llvm.org
Thu Nov 6 01:20:35 PST 2025


================
@@ -386,18 +383,17 @@ void ValueBoundsConstraintSet::processWorklist() {
     // Do not process any further if the stop condition is met.
     auto maybeDim = dim == kIndexValue ? std::nullopt : std::make_optional(dim);
     if (stopCondition(value, maybeDim, *this)) {
-      LLVM_DEBUG(llvm::dbgs() << "Stop condition met for: " << value
-                              << " (dim: " << maybeDim << ")\n");
+      LDBG() << "Stop condition met for: " << value << " (dim: " << maybeDim
+             << ")\n";
       continue;
     }
 
     // Query `ValueBoundsOpInterface` for constraints. New items may be added to
     // the worklist.
     auto valueBoundsOp =
         dyn_cast<ValueBoundsOpInterface>(getOwnerOfValue(value));
-    LLVM_DEBUG(llvm::dbgs()
-               << "Query value bounds for: " << value
-               << " (owner: " << getOwnerOfValue(value)->getName() << ")\n");
+    LDBG() << "Query value bounds for: " << value
+           << " (owner: " << getOwnerOfValue(value)->getName() << ")\n";
----------------
joker-eph wrote:

```suggestion
           << " (owner: " << getOwnerOfValue(value)->getName() << ")";
```

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


More information about the Mlir-commits mailing list