From 01f332e75026457401477d7bdc9fe3978cce4a93 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Tue, 25 Jun 2024 20:18:49 +0200 Subject: [PATCH] opt_expr: reduce mostly harmless warning to log --- passes/opt/opt_expr.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/passes/opt/opt_expr.cc b/passes/opt/opt_expr.cc index 07c54c9d0..ba7292daf 100644 --- a/passes/opt/opt_expr.cc +++ b/passes/opt/opt_expr.cc @@ -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)