diff --git a/passes/opt/opt_muxtree.cc b/passes/opt/opt_muxtree.cc index 867fab9a3..6c3a5ec69 100644 --- a/passes/opt/opt_muxtree.cc +++ b/passes/opt/opt_muxtree.cc @@ -149,7 +149,7 @@ struct OptMuxtreeWorker // Limit the number of iterations based on the number of muxes. // The multiplier (1000) is arbitrary. - glob_abort_cnt = GetSize(mux2info) * 1000; + glob_abort_cnt = max(100000, GetSize(mux2info) * 100); // Populate mux2info[].ports[]: // .input_muxes