Skip to content

Commit 6095f8b

Browse files
authored
Get rid of noisy debug log in verifyOpAndAdjustFlags. (#84677)
This debug log adds noise to a large fraction of *other* debug logs when you run with -debug, because it prints "Verifying operation: blah blah\n" whenever those other debug logs dump an op. You can use -debug-only to get around this, but sometimes -debug really is what's called for!
1 parent 6bbb73b commit 6095f8b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mlir/lib/IR/AsmPrinter.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,9 +1895,6 @@ static OpPrintingFlags verifyOpAndAdjustFlags(Operation *op,
18951895
printerFlags.shouldAssumeVerified())
18961896
return printerFlags;
18971897

1898-
LLVM_DEBUG(llvm::dbgs() << DEBUG_TYPE << ": Verifying operation: "
1899-
<< op->getName() << "\n");
1900-
19011898
// Ignore errors emitted by the verifier. We check the thread id to avoid
19021899
// consuming other threads' errors.
19031900
auto parentThreadId = llvm::get_threadid();

0 commit comments

Comments
 (0)