opt_expr: cleanup

This commit is contained in:
Emil J. Tywoniak 2026-05-28 14:56:27 +02:00
parent 5cdb189ea0
commit b594196a48
1 changed files with 1 additions and 4 deletions

View File

@ -618,11 +618,8 @@ void replace_const_cells(RTLIL::Design *design, RTLIL::Module *module, bool cons
log_abort();
}
auto port_a = ID::A;
if (!sig_a.wire) {
if (!sig_a.wire)
std::swap(sig_a, sig_b);
port_a = ID::B;
}
if (sig_b == State::S0 || sig_b == State::S1) {
if (cell->type.in(ID($xor), ID($_XOR_))) {
if (sig_b == State::S0) {