[Mlir-commits] [mlir] Support nice logging for `ProgramPoint*` in dataflow log (PR #154839)
Peng Chen
llvmlistbot at llvm.org
Fri Aug 22 09:59:45 PDT 2025
https://github.com/pchen7e2 updated https://github.com/llvm/llvm-project/pull/154839
>From f934aa7838d246981df57c85498a6c8f453148a2 Mon Sep 17 00:00:00 2001
From: Peng Chen <pchen7e2 at gmail.com>
Date: Fri, 22 Aug 2025 09:51:10 -0700
Subject: [PATCH] Print ProgramPoint instead of pointer for better logging
---
mlir/lib/Analysis/DataFlowFramework.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mlir/lib/Analysis/DataFlowFramework.cpp b/mlir/lib/Analysis/DataFlowFramework.cpp
index cc2c9eb8b5aa5..76bf94aed9e02 100644
--- a/mlir/lib/Analysis/DataFlowFramework.cpp
+++ b/mlir/lib/Analysis/DataFlowFramework.cpp
@@ -45,7 +45,7 @@ void AnalysisState::addDependency(ProgramPoint *dependent,
DATAFLOW_DEBUG({
if (inserted) {
LDBG() << "Creating dependency between " << debugName << " of " << anchor
- << "\nand " << debugName << " on " << dependent;
+ << "\nand " << debugName << " on " << *dependent;
}
});
}
@@ -128,7 +128,7 @@ LogicalResult DataFlowSolver::initializeAndRun(Operation *top) {
worklist.pop();
DATAFLOW_DEBUG(LDBG() << "Invoking '" << analysis->debugName
- << "' on: " << point);
+ << "' on: " << *point);
if (failed(analysis->visit(point)))
return failure();
}
More information about the Mlir-commits
mailing list