diff --git a/passes/opt/opt_dff.cc b/passes/opt/opt_dff.cc index c3aab7b6d..52eb919e0 100644 --- a/passes/opt/opt_dff.cc +++ b/passes/opt/opt_dff.cc @@ -623,6 +623,7 @@ struct OptDffWorker new_ff.ce_over_srst = true; Cell *new_cell = new_ff.emit(); + module->swap_names(cell, new_cell); if (new_cell) dff_cells.push_back(new_cell); @@ -697,6 +698,7 @@ struct OptDffWorker new_ff.ce_over_srst = false; Cell *new_cell = new_ff.emit(); + module->swap_names(cell, new_cell); if (new_cell) dff_cells.push_back(new_cell);