Skip to content

Commit

Permalink
Get rid of noisy debug log in verifyOpAndAdjustFlags. (#84677)
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
jlebar authored Mar 12, 2024
1 parent 6bbb73b commit 6095f8b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mlir/lib/IR/AsmPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1895,9 +1895,6 @@ static OpPrintingFlags verifyOpAndAdjustFlags(Operation *op,
printerFlags.shouldAssumeVerified())
return printerFlags;

LLVM_DEBUG(llvm::dbgs() << DEBUG_TYPE << ": Verifying operation: "
<< op->getName() << "\n");

// Ignore errors emitted by the verifier. We check the thread id to avoid
// consuming other threads' errors.
auto parentThreadId = llvm::get_threadid();
Expand Down

0 comments on commit 6095f8b

Please sign in to comment.