[Mlir-commits] [mlir] [MLIR] Add logging/tracing to DataFlow analysis and RemoveDeadValues (NFC) (PR #144695)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Fri Jun 20 00:31:47 PDT 2025
================
@@ -77,28 +80,46 @@ ChangeResult Liveness::meet(const AbstractSparseLattice &other) {
LogicalResult
LivenessAnalysis::visitOperation(Operation *op, ArrayRef<Liveness *> operands,
ArrayRef<const Liveness *> results) {
+ LLVM_DEBUG(llvm::dbgs() << "LNA: Visiting operation: " << *op << "\n");
----------------
ftynse wrote:
It clearly doesn't get the logic :) A contrary suggestion is to print operations without regions. This significantly reduces the amount of debug spew and the operation can still be found. Maybe we should have a global option for that and omit regions in dbgs somehow (but not in outs).
https://github.com/llvm/llvm-project/pull/144695
More information about the Mlir-commits
mailing list