Implement opt_share
authorBogdan Vukobratovic <bogdan.vukobratovic@gmail.com>
Fri, 26 Jul 2019 09:36:48 +0000 (11:36 +0200)
committerBogdan Vukobratovic <bogdan.vukobratovic@gmail.com>
Fri, 26 Jul 2019 09:36:48 +0000 (11:36 +0200)
commit07c4a7d4388cdacaa15512dd2f6f0f9e9fcb31f5
tree1bee2945a214e126b3356168c9763aa16d336a98
parenta02d1720a766ae1b993a9884e840f37b3d785b8f
Implement opt_share

This pass identifies arithmetic operators that share an operand and whose
results are used in mutually exclusive cases controlled by a multiplexer, and
merges them together by multiplexing the other operands
passes/opt/Makefile.inc
passes/opt/opt_share.cc [new file with mode: 0644]
tests/opt/opt_share_cat.v [new file with mode: 0644]
tests/opt/opt_share_cat.ys [new file with mode: 0644]
tests/opt/opt_share_mux_tree.v [new file with mode: 0644]
tests/opt/opt_share_mux_tree.ys [new file with mode: 0644]