From f4343b3dc7dfb1908848b21b406f13884e8c407a Mon Sep 17 00:00:00 2001 From: tklam Date: Sat, 13 Oct 2018 23:24:24 +0800 Subject: [PATCH] stop check_signal_in_fanout from traversing FFs --- passes/equiv/equiv_make.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/passes/equiv/equiv_make.cc b/passes/equiv/equiv_make.cc index e75482e9f..66ee28aff 100644 --- a/passes/equiv/equiv_make.cc +++ b/passes/equiv/equiv_make.cc @@ -423,8 +423,8 @@ struct EquivMakeWorker auto driven_cells = bit2driven.at(source_bit); for (auto driven_cell: driven_cells) { - bool is_comb = comb_ct.cell_known(cell->type); - if (is_comb) + bool is_comb = comb_ct.cell_known(driven_cell->type); + if (!is_comb) continue; if (visited_cells.count(driven_cell) > 0) -- 2.30.2