Merge pull request #3946 from rmlarsen/toposort
Speed up TopoSort by 2.7-3.3x.
This commit is contained in:
@@ -582,7 +582,7 @@ struct GliftPass : public Pass {
|
||||
for (auto cell : module->selected_cells()) {
|
||||
RTLIL::Module *tpl = design->module(cell->type);
|
||||
if (tpl != nullptr) {
|
||||
if (topo_modules.database.count(tpl) == 0)
|
||||
if (!topo_modules.has_node(tpl))
|
||||
worklist.push_back(tpl);
|
||||
topo_modules.edge(tpl, module);
|
||||
non_top_modules.insert(cell->type);
|
||||
|
||||
Reference in New Issue
Block a user