[Mlir-commits] [mlir] c1d82e2 - [mlir][reducer] Use LDBG in opt-reduction-pass (NFC) (#184026)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Mar 2 02:58:01 PST 2026


Author: lonely eagle
Date: 2026-03-02T18:57:57+08:00
New Revision: c1d82e2f3e83c89b78825233afe05796ae2f73c0

URL: https://github.com/llvm/llvm-project/commit/c1d82e2f3e83c89b78825233afe05796ae2f73c0
DIFF: https://github.com/llvm/llvm-project/commit/c1d82e2f3e83c89b78825233afe05796ae2f73c0.diff

LOG: [mlir][reducer] Use LDBG in opt-reduction-pass (NFC) (#184026)

Co-authored-by: Mehdi Amini <joker.eph at gmail.com>

Added: 
    

Modified: 
    mlir/lib/Reducer/OptReductionPass.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Reducer/OptReductionPass.cpp b/mlir/lib/Reducer/OptReductionPass.cpp
index 7eb29a02702a8..4bdc7b17567d9 100644
--- a/mlir/lib/Reducer/OptReductionPass.cpp
+++ b/mlir/lib/Reducer/OptReductionPass.cpp
@@ -17,7 +17,7 @@
 #include "mlir/Reducer/Passes.h"
 #include "mlir/Reducer/Tester.h"
 
-#include "llvm/Support/Debug.h"
+#include "llvm/Support/DebugLog.h"
 
 namespace mlir {
 #define GEN_PASS_DEF_OPTREDUCTIONPASS
@@ -42,7 +42,7 @@ class OptReductionPass : public impl::OptReductionPassBase<OptReductionPass> {
 
 /// Runs the pass instance in the pass pipeline.
 void OptReductionPass::runOnOperation() {
-  LLVM_DEBUG(llvm::dbgs() << "\nOptimization Reduction pass: ");
+  LDBG() << "\nOptimization Reduction pass: ";
 
   Tester test(testerName, testerArgs);
 
@@ -80,12 +80,12 @@ void OptReductionPass::runOnOperation() {
     module.getBody()->clear();
     module.getBody()->getOperations().splice(
         module.getBody()->begin(), moduleVariant.getBody()->getOperations());
-    LLVM_DEBUG(llvm::dbgs() << "\nSuccessful Transformed version\n\n");
+    LDBG() << "\nSuccessful Transformed version\n";
   } else {
-    LLVM_DEBUG(llvm::dbgs() << "\nUnsuccessful Transformed version\n\n");
+    LDBG() << "\nUnsuccessful Transformed version\n";
   }
 
   moduleVariant->destroy();
 
-  LLVM_DEBUG(llvm::dbgs() << "Pass Complete\n\n");
+  LDBG() << "Pass Complete\n";
 }


        


More information about the Mlir-commits mailing list