mirror of
https://github.com/YosysHQ/yosys
synced 2026-02-13 04:13:03 +00:00
Parallelize opt_merge.
I'm not sure why but this is actually faster than existing `opt_merge` even with YOSYS_MAX_THREADS=1, for the jpeg synthesis test. 16.0s before, 15.5s after for end-to-end synthesis.
This commit is contained in:
parent
1cceaa2a80
commit
755836cd60
3 changed files with 294 additions and 106 deletions
|
|
@ -1321,6 +1321,12 @@ public:
|
|||
return i < 0 ? 0 : 1;
|
||||
}
|
||||
|
||||
int lookup(const K &key) const
|
||||
{
|
||||
Hasher::hash_t hash = database.do_hash(key);
|
||||
return database.do_lookup_no_rehash(key, hash);
|
||||
}
|
||||
|
||||
void expect(const K &key, int i)
|
||||
{
|
||||
int j = (*this)(key);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue