Skip to content

Commit

Permalink
opt_expr: reduce mostly harmless warning to log
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Jun 25, 2024
1 parent fa4a2b6 commit 01f332e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions passes/opt/opt_expr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,9 @@ void replace_const_cells(RTLIL::Design *design, RTLIL::Module *module, bool cons
}

if (!cells.sort()) {
// There might be a combinational loop, or there might be constants on the output of cells. Either way 'check' will find out more.
log_warning("Unable to topologically sort combinational cells, there must be an issue with the design. Run 'check' to see what the issue is.\n");
// There might be a combinational loop, or there might be constants on the output of cells. 'check' may find out more.
// ...unless this is a coarse-grained cell loop, but not a bit loop, in which case it won't, and all is good.
log("Couldn't topologically sort cells, Yosys performance may be degraded.\nRunning 'check' is recommended.\n");
}

for (auto cell : cells.sorted)
Expand Down

0 comments on commit 01f332e

Please sign in to comment.