mirror of https://github.com/YosysHQ/yosys.git
Merge d67989f9ad
into 29e8812bab
This commit is contained in:
commit
9e48df6b4b
|
@ -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;
|
||||
|
@ -147,6 +147,10 @@ struct OptMuxtreeWorker
|
|||
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
|
||||
for (int i = 0; i < GetSize(bit2info); i++)
|
||||
|
|
Loading…
Reference in New Issue