mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-06 09:51:10 +00:00
Merge pull request #5287 from Anhijkt/opt_dff-fix-5279
opt_dff: fix timeout issue
This commit is contained in:
commit
5aa71505fc
3 changed files with 707 additions and 1 deletions
|
@ -199,7 +199,7 @@ struct OptDffWorker
|
|||
|
||||
const auto complimentary_var = find_comp(left, right);
|
||||
|
||||
if (complimentary_var) {
|
||||
if (complimentary_var && new_patterns.count(right)) {
|
||||
new_patterns.erase(right);
|
||||
right.erase(complimentary_var.value());
|
||||
new_patterns.insert(right);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue