In hash_cell_inputs, avoid constructing an std::pair (which requires copying the port IdString)
This commit is contained in:
committed by
Emil J. Tywoniak
parent
41b6c0cb9f
commit
54a258f854
@@ -107,7 +107,7 @@ struct OptMergeWorker
|
||||
for (const auto& [port, sig] : cell->connections()) {
|
||||
if (cell->output(port))
|
||||
continue;
|
||||
comm.eat(hash_ops<std::pair<IdString, SigSpec>>::hash({port, assign_map(sig)}));
|
||||
comm.eat(hash_ops<std::pair<IdString, SigSpec>>::hash(port, assign_map(sig)));
|
||||
}
|
||||
h = comm.hash_into(h);
|
||||
if (RTLIL::builtin_ff_cell_types().count(cell->type))
|
||||
|
||||
Reference in New Issue
Block a user