3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-24 18:31:29 +00:00

Use fast path for 32-bit Const integer constructor in more places

This commit is contained in:
Robert O'Callahan 2025-08-29 03:34:17 +00:00
parent 9ad83cc67b
commit 1a367b907c
6 changed files with 10 additions and 9 deletions

View file

@ -45,7 +45,7 @@ struct QlBramMergeWorker {
{
if(cell->type != split_cell_type) continue;
if(!cell->hasParam(ID(OPTION_SPLIT))) continue;
if(cell->getParam(ID(OPTION_SPLIT)) != RTLIL::Const(1, 32)) continue;
if(cell->getParam(ID(OPTION_SPLIT)) != RTLIL::Const(1)) continue;
mergeable_groups[get_key(cell)].insert(cell);
}
}