mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-05-30 00:24:12 +08:00
back edge->to is a root resolves #395
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
@@ -323,7 +323,7 @@ Levelize::findCycleBackEdges()
|
||||
stack.emplace(vertex, new VertexOutEdgeIterator(vertex, graph_));
|
||||
EdgeSet back_edges = findBackEdges(path, stack);
|
||||
for (Edge *back_edge : back_edges)
|
||||
roots_.insert(back_edge->from(graph_));
|
||||
roots_.insert(back_edge->to(graph_));
|
||||
back_edge_count += back_edges.size();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user