opt_expr: Sx to Sz; spotted by @Xiretza

This commit is contained in:
Eddie Hung 2020-05-14 12:14:23 -07:00
parent 73b7ea713c
commit 7b3a4a1fff
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ bool group_cell_inputs(RTLIL::Module *module, RTLIL::Cell *cell, bool commutativ
}
}
bool def = (bit_a != State::Sx && bit_a != State::Sz && bit_b != State::Sx && bit_b != State::Sx);
bool def = (bit_a != State::Sx && bit_a != State::Sz && bit_b != State::Sx && bit_b != State::Sz);
if (def || !keepdc) {
if (bit_a.wire == NULL && bit_b.wire == NULL)
group_idx = GRP_CONST_AB;