Skip to content

Commit 6896725

Browse files
authored
Support nice logging for ProgramPoint* in dataflow log (llvm#154839)
There're places where a pointer instead of `ProgramPoint` object is passed to stream print `<<`, and they'll be printed as pointer value. This PR converts them to object before passing to stream printers. The address isn't much helpful in the debug and does not help when diffing before/after debug traces.
1 parent d747f70 commit 6896725

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Analysis/DataFlowFramework.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void AnalysisState::addDependency(ProgramPoint *dependent,
4545
DATAFLOW_DEBUG({
4646
if (inserted) {
4747
LDBG() << "Creating dependency between " << debugName << " of " << anchor
48-
<< "\nand " << debugName << " on " << dependent;
48+
<< "\nand " << debugName << " on " << *dependent;
4949
}
5050
});
5151
}
@@ -128,7 +128,7 @@ LogicalResult DataFlowSolver::initializeAndRun(Operation *top) {
128128
worklist.pop();
129129

130130
DATAFLOW_DEBUG(LDBG() << "Invoking '" << analysis->debugName
131-
<< "' on: " << point);
131+
<< "' on: " << *point);
132132
if (failed(analysis->visit(point)))
133133
return failure();
134134
}

0 commit comments

Comments
 (0)