From 1dd846022b279623f079b2c7dcc378b1837883a1 Mon Sep 17 00:00:00 2001 From: Akash Levy Date: Wed, 28 Jan 2026 23:36:49 -0800 Subject: [PATCH] Fix opt_dff cell naming --- passes/opt/opt_dff.cc | 2 ++ 1 file changed, 2 insertions(+) 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);