[Mlir-commits] [mlir] 7cb2ace - [MLIR] Use LDBG() debugging macro in InliningUtils.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Sat Aug 23 04:19:48 PDT 2025


Author: Mehdi Amini
Date: 2025-08-23T04:19:36-07:00
New Revision: 7cb2acecef31af4b4e952657c4aef9c97d44c00c

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

LOG: [MLIR] Use LDBG() debugging macro in InliningUtils.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Transforms/Utils/InliningUtils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Transforms/Utils/InliningUtils.cpp b/mlir/lib/Transforms/Utils/InliningUtils.cpp
index 5ea31054051ac..73107cfc36ea9 100644
--- a/mlir/lib/Transforms/Utils/InliningUtils.cpp
+++ b/mlir/lib/Transforms/Utils/InliningUtils.cpp
@@ -18,6 +18,7 @@
 #include "mlir/IR/Operation.h"
 #include "mlir/Interfaces/CallInterfaces.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/DebugLog.h"
 #include "llvm/Support/raw_ostream.h"
 #include <optional>
 
@@ -191,10 +192,8 @@ static bool isLegalToInline(InlinerInterface &interface, Region *src,
       // Check this operation.
       if (!interface.isLegalToInline(&op, insertRegion,
                                      shouldCloneInlinedRegion, valueMapping)) {
-        LLVM_DEBUG({
-          llvm::dbgs() << "* Illegal to inline because of op: ";
-          op.dump();
-        });
+        LDBG() << "* Illegal to inline because of op: "
+               << OpWithFlags(&op, OpPrintingFlags().skipRegions());
         return false;
       }
       // Check any nested regions.


        


More information about the Mlir-commits mailing list