From fd30ee15cc84e187b97194eec797ffdc2c315134 Mon Sep 17 00:00:00 2001 From: Hideto Ueno Date: Mon, 29 Sep 2025 20:21:37 -0700 Subject: [PATCH] Remove unnecessary fanout size value assignment in refactoring algorithm The change removes a loop that sets node values to their fanout sizes in the refactoring_impl::run() method --- include/mockturtle/algorithms/refactoring.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/mockturtle/algorithms/refactoring.hpp b/include/mockturtle/algorithms/refactoring.hpp index dbdef7273..eafc5e02d 100644 --- a/include/mockturtle/algorithms/refactoring.hpp +++ b/include/mockturtle/algorithms/refactoring.hpp @@ -166,10 +166,6 @@ class refactoring_impl return true; } - ntk.foreach_node( [&]( auto n ){ - ntk.set_value( n, ntk.fanout_size( n ) ); - }); - const auto mffc = make_with_stopwatch>( st.time_mffc, ntk, n ); pbar( i, i, _candidates, _estimated_gain );