Fix issue #306, "Bug in opt -full"
authorC-Elegans <mtnolan2640@gmail.com>
Fri, 10 Feb 2017 15:28:19 +0000 (10:28 -0500)
committerC-Elegans <mtnolan2640@gmail.com>
Fri, 10 Feb 2017 15:38:02 +0000 (10:38 -0500)
commit94b272077d33b3da3df32bf680f69e1af8130cef
treeaf0a42da3c37ffcc5692bd3f10ac89bcde6ddecb
parente6cc67b46f637e5fc971c79e8f115c225b807120
Fix issue #306, "Bug in opt -full"

Add check for whether the high bit in the constant expression is greater
than the width of the variable, and optimizes that to a constant 1 or
0
passes/opt/opt_expr.cc