3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-29 10:23:47 +00:00

Merge pull request #6068 from YosysHQ/emil/aigmap-remove-unused-cache

aigmap: remove unused and_cache
This commit is contained in:
Emil J 2026-07-27 20:40:51 +00:00 committed by GitHub
commit 07a615a283
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,6 @@ struct AigmapPass : public Pass {
}
vector<SigBit> sigs;
dict<pair<int, int>, SigBit> and_cache;
for (int node_idx = 0; node_idx < GetSize(aig.nodes); node_idx++)
{
@ -115,15 +114,10 @@ struct AigmapPass : public Pass {
goto skip_inverter;
} else {
pair<int, int> key(node.left_parent, node.right_parent);
if (and_cache.count(key))
bit = and_cache.at(key);
else {
bit = module->addWire(NEW_ID);
auto gate = module->addAndGate(NEW_ID, A, B, bit);
if (select_mode)
new_sel.insert(gate->name);
}
bit = module->addWire(NEW_ID);
auto gate = module->addAndGate(NEW_ID, A, B, bit);
if (select_mode)
new_sel.insert(gate->name);
}
}