diff options
author | David Shah <dave@ds0.me> | 2020-01-28 09:42:01 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-01-28 09:42:01 +0000 |
commit | 6fd9cae5ca5c7b154371f5cd328a7d96ef00f259 (patch) | |
tree | 9b936b0a20c6d5c4870229ad6df114d96875495d /passes/opt | |
parent | 409e5324333d881dadd64fa211b9a6aa86ce36e9 (diff) | |
download | yosys-6fd9cae5ca5c7b154371f5cd328a7d96ef00f259.tar.gz yosys-6fd9cae5ca5c7b154371f5cd328a7d96ef00f259.tar.bz2 yosys-6fd9cae5ca5c7b154371f5cd328a7d96ef00f259.zip |
opt_reduce: Call check() per run rather than per optimised cell
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'passes/opt')
-rw-r--r-- | passes/opt/opt_reduce.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/passes/opt/opt_reduce.cc b/passes/opt/opt_reduce.cc index 6a8d8cabd..09f6e12e9 100644 --- a/passes/opt/opt_reduce.cc +++ b/passes/opt/opt_reduce.cc @@ -235,7 +235,6 @@ struct OptReduceWorker log(" New connections: %s = %s\n", log_signal(old_sig_conn.first), log_signal(old_sig_conn.second)); module->connect(old_sig_conn); - module->check(); did_something = true; total_count++; @@ -324,6 +323,8 @@ struct OptReduceWorker opt_mux(cell); } } + + module->check(); } }; |