3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-10 01:06:17 +00:00

Merge pull request #6012 from YosysHQ/nella/fix-opt-reduce

`opt_reduce`: restore pmux b-slice == a elim
This commit is contained in:
nella 2026-07-08 13:36:04 +00:00 committed by GitHub
commit 8dc32cbf4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 52 additions and 0 deletions

View file

@ -115,6 +115,8 @@ struct OptReduceWorker
int port_width = sig_a.size();
for (int i = 0; i < sig_s.size(); i++) {
RTLIL::SigSpec this_b = sig_b.extract(i*port_width, port_width);
if (this_b == sig_a)
continue;
if (grouped_b_to_s.count(this_b)) {
grouped_b_to_s[this_b].push_back(sig_s[i]);
} else {