aboutsummaryrefslogtreecommitdiffstats
path: root/manual
diff options
context:
space:
mode:
authorMarcelina Koƛcielnicka <mwk@0x04.net>2021-06-09 16:14:16 +0200
committerMarcelina Koƛcielnicka <mwk@0x04.net>2021-06-09 17:42:30 +0200
commit12b3a9765dafeb8766265c82dee9e06435343e66 (patch)
treee5c0ea0f96e28a9e3537f21f395323491dc56f6e /manual
parent55e8f5061af57bf25bd9e30528de8196c6eabe9e (diff)
downloadyosys-12b3a9765dafeb8766265c82dee9e06435343e66.tar.gz
yosys-12b3a9765dafeb8766265c82dee9e06435343e66.tar.bz2
yosys-12b3a9765dafeb8766265c82dee9e06435343e66.zip
opt_expr: Optimize div/mod by const 1.
Turns out the code for div by a power of 2 is already almost capable of optimizing this to a shift-by-0 or and-with-0, which will be further folded into nothingness; let's beef it up to handle div by 1 as well. Fixes #2820.
Diffstat (limited to 'manual')
0 files changed, 0 insertions, 0 deletions