diff options
author | Marcelina KoĆcielnicka <mwk@0x04.net> | 2021-06-09 16:14:16 +0200 |
---|---|---|
committer | Marcelina KoĆcielnicka <mwk@0x04.net> | 2021-06-09 17:42:30 +0200 |
commit | 12b3a9765dafeb8766265c82dee9e06435343e66 (patch) | |
tree | e5c0ea0f96e28a9e3537f21f395323491dc56f6e /manual | |
parent | 55e8f5061af57bf25bd9e30528de8196c6eabe9e (diff) | |
download | yosys-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