[Mlir-commits] [mlir] [mlir][dataflow] Improve DataFlowFramework debug output (PR #176632)
lonely eagle
llvmlistbot at llvm.org
Thu Feb 5 01:57:48 PST 2026
================
@@ -42,17 +42,32 @@ AnalysisState::~AnalysisState() = default;
void AnalysisState::addDependency(ProgramPoint *dependent,
DataFlowAnalysis *analysis) {
auto inserted = dependents.insert({dependent, analysis});
- (void)inserted;
DATAFLOW_DEBUG({
if (inserted) {
LDBG() << "Creating dependency between " << debugName << " of " << anchor
- << "\nand " << debugName << " on " << *dependent;
+ << "\nand " << debugName << " on " << *dependent << "\nwith "
+ << analysis->debugName;
}
----------------
linuxlonelyeagle wrote:
```
[dataflow DataFlowFramework.cpp:47 1] Creating dependency between mlir::dataflow::PredecessorState of <after operation>:func.func @test_forall_op_control_flow(%arg0: index) {...}
[dataflow DataFlowFramework.cpp:47 1] and mlir::dataflow::PredecessorState on <after operation>:func.func @test_forall_op_control_flow(%arg0: index) {...}
[dataflow DataFlowFramework.cpp:47 1] with mlir::dataflow::DeadCodeAnalysis
```
https://github.com/llvm/llvm-project/pull/176632
More information about the Mlir-commits
mailing list