Simplify MUXZ if the select is constant.
commit4c5f24c7a732fff41dc41cf646efaa9fefb34ea7
authorStephen Williams <steve@icarus.com>
Wed, 21 May 2008 17:25:44 +0000 (21 10:25 -0700)
committerStephen Williams <steve@icarus.com>
Wed, 21 May 2008 17:25:44 +0000 (21 10:25 -0700)
tree6dd9a3cf5476892c4da342f5158d9c7c2260acdf
parentbe810c5ba6634ec684d4e8243f59f1549701000e
Simplify MUXZ if the select is constant.

If the select of a MUXZ is constant 0 or 1, then we can elide the MUX
in place of a simple BUFZ. This should allow the dead code on the
unused side to be removed as well.
cprop.cc