Skip to content

Commit 7cb2ace

Browse files
committed
[MLIR] Use LDBG() debugging macro in InliningUtils.cpp (NFC)
1 parent 35e7336 commit 7cb2ace

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mlir/lib/Transforms/Utils/InliningUtils.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "mlir/IR/Operation.h"
1919
#include "mlir/Interfaces/CallInterfaces.h"
2020
#include "llvm/Support/Debug.h"
21+
#include "llvm/Support/DebugLog.h"
2122
#include "llvm/Support/raw_ostream.h"
2223
#include <optional>
2324

@@ -191,10 +192,8 @@ static bool isLegalToInline(InlinerInterface &interface, Region *src,
191192
// Check this operation.
192193
if (!interface.isLegalToInline(&op, insertRegion,
193194
shouldCloneInlinedRegion, valueMapping)) {
194-
LLVM_DEBUG({
195-
llvm::dbgs() << "* Illegal to inline because of op: ";
196-
op.dump();
197-
});
195+
LDBG() << "* Illegal to inline because of op: "
196+
<< OpWithFlags(&op, OpPrintingFlags().skipRegions());
198197
return false;
199198
}
200199
// Check any nested regions.

0 commit comments

Comments
 (0)