stop check_signal_in_fanout from traversing FFs
authortklam <tklam@easylogic.hk>
Sat, 13 Oct 2018 15:24:24 +0000 (23:24 +0800)
committertklam <tklam@easylogic.hk>
Sat, 13 Oct 2018 15:24:24 +0000 (23:24 +0800)
passes/equiv/equiv_make.cc

index e75482e9fc8ea3e2de3ccc7ddcc5550439b3271b..66ee28aff9d581d1433ee43d844e177a97da5cca 100644 (file)
@@ -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)