Skip to content

Commit cbabd8a

Browse files
authored
Internals: Fix redundant edges in V3Trace (verilator#5939). No functional change intended..
Signed-off-by: Ryszard Rozak <[email protected]>
1 parent 3ecd584 commit cbabd8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/V3Trace.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@ class TraceVisitor final : public VNVisitor {
755755
void createTraceFunctions() {
756756
// Detect and remove duplicate values
757757
detectDuplicates();
758+
m_graph.removeRedundantEdgesMax(&V3GraphEdge::followAlwaysTrue);
758759

759760
// Simplify & optimize the graph
760761
if (dumpGraphLevel() >= 6) m_graph.dumpDotFilePrefixed("trace_pre");

0 commit comments

Comments
 (0)