mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-30 03:02:30 +00:00
Remove opt_compare and put comparison pass in opt_expr
assuming a [7:0] is unsigned
a >= (1<<x) becomes |a[7:x]
a < (1<<x) becomes !a[7:x]
Additionally:
a >= 0 becomes constant true,
a < 0 becomes constant false
delete opt_compare.cc
revert opt.cc to commit
|
||
|---|---|---|
| .. | ||
| Makefile.inc | ||
| opt.cc | ||
| opt_clean.cc | ||
| opt_expr.cc | ||
| opt_merge.cc | ||
| opt_muxtree.cc | ||
| opt_reduce.cc | ||
| opt_rmdff.cc | ||
| share.cc | ||
| wreduce.cc | ||