projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73b7ea7
)
opt_expr: Sx to Sz; spotted by @Xiretza
author
Eddie Hung
<eddie@fpgeh.com>
Thu, 14 May 2020 19:14:23 +0000
(12:14 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Thu, 14 May 2020 19:14:23 +0000
(12:14 -0700)
passes/opt/opt_expr.cc
patch
|
blob
|
history
diff --git
a/passes/opt/opt_expr.cc
b/passes/opt/opt_expr.cc
index 63811c1a1f88c95a25b2cd3abcb9b182e02aa912..777a24777f3cc005771751b9ed2d2a778c4cd251 100644
(file)
--- a/
passes/opt/opt_expr.cc
+++ b/
passes/opt/opt_expr.cc
@@
-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::S
x
);
+ bool def = (bit_a != State::Sx && bit_a != State::Sz && bit_b != State::Sx && bit_b != State::S
z
);
if (def || !keepdc) {
if (bit_a.wire == NULL && bit_b.wire == NULL)
group_idx = GRP_CONST_AB;