From b594196a489b214a1ec71466a8813d4d72270d43 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Thu, 28 May 2026 14:56:27 +0200 Subject: [PATCH] opt_expr: cleanup --- passes/opt/opt_expr.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/passes/opt/opt_expr.cc b/passes/opt/opt_expr.cc index 4982d70ec..920e05490 100644 --- a/passes/opt/opt_expr.cc +++ b/passes/opt/opt_expr.cc @@ -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) {