Compare commits

...

4 Commits

Author SHA1 Message Date
Carlo Alberto Ferraris 121c01f058
Merge d67989f9ad into 4b3c03dabc 2024-11-21 09:55:52 +01:00
N. Engelhardt d67989f9ad update opt_muxtree iteration limit 2022-11-11 14:53:32 +01:00
Carlo Alberto Ferraris b5251b4802
Update opt_muxtree.cc 2022-11-06 21:59:40 +09:00
Carlo Alberto Ferraris 551d36d384
opt_muxtree: set iterations limit based on number of muxes 2022-11-03 21:18:21 +09:00
1 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,7 @@ struct OptMuxtreeWorker
RTLIL::Module *module;
SigMap assign_map;
int removed_count;
int glob_abort_cnt = 100000;
int glob_abort_cnt;
struct bitinfo_t {
bool seen_non_mux;
@ -146,6 +146,10 @@ struct OptMuxtreeWorker
log(" No muxes found in this module.\n");
return;
}
// Limit the number of iterations based on the number of muxes.
// The multiplier (1000) is arbitrary.
glob_abort_cnt = max(100000, GetSize(mux2info) * 100);
// Populate mux2info[].ports[]:
// .input_muxes