equiv_simple: Drop hollow conditional

All the listed flip-flop types would be known cells, so the extra part
of the conditional is without effect.
This commit is contained in:
Martin Povišer 2023-10-02 11:07:02 +02:00
parent 493685b7d2
commit 26644ea779
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ struct EquivSimplePass : public Pass {
unproven_cells_counter, GetSize(unproven_equiv_cells), log_id(module)); unproven_cells_counter, GetSize(unproven_equiv_cells), log_id(module));
for (auto cell : module->cells()) { for (auto cell : module->cells()) {
if (!ct.cell_known(cell->type) && !cell->type.in(ID($dff), ID($_DFF_P_), ID($_DFF_N_), ID($ff), ID($_FF_))) if (!ct.cell_known(cell->type))
continue; continue;
for (auto &conn : cell->connections()) for (auto &conn : cell->connections())
if (yosys_celltypes.cell_output(cell->type, conn.first)) if (yosys_celltypes.cell_output(cell->type, conn.first))