[Mlir-commits] [mlir] Support nice logging for `ProgramPoint*` in dataflow log (PR #154839)
Peng Chen
llvmlistbot at llvm.org
Fri Aug 22 09:52:03 PDT 2025
https://github.com/pchen7e2 updated https://github.com/llvm/llvm-project/pull/154839
>From e5446dbbcb30536e5ee503aa498bc6169e1e7535 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 176d53e017c9f..58bdb9511e893 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) {
llvm::dbgs() << "Creating dependency between " << debugName << " of "
- << anchor << "\nand " << debugName << " on " << dependent
+ << anchor << "\nand " << debugName << " on " << *dependent
<< "\n";
}
});
@@ -130,7 +130,7 @@ LogicalResult DataFlowSolver::initializeAndRun(Operation *top) {
worklist.pop();
DATAFLOW_DEBUG(llvm::dbgs() << "Invoking '" << analysis->debugName
- << "' on: " << point << "\n");
+ << "' on: " << *point << "\n");
if (failed(analysis->visit(point)))
return failure();
}
More information about the Mlir-commits
mailing list