3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-04-15 00:35:12 +00:00

opt_expr: with -keepdc disable equality optimization rules that break when ports are sigmapped

This commit is contained in:
Emil J. Tywoniak 2026-03-25 11:50:17 +01:00
parent c416d39ebb
commit 1775bce173

View file

@ -1213,7 +1213,7 @@ skip_fine_alu:
}
}
if (cell->type.in(ID($eq), ID($ne), ID($eqx), ID($nex)))
if (!keepdc && cell->type.in(ID($eq), ID($ne), ID($eqx), ID($nex)))
{
RTLIL::SigSpec a = cell->getPort(ID::A);
RTLIL::SigSpec b = cell->getPort(ID::B);