re PR middle-end/18908 (Missed folding opportunities with bools)
authorRichard Biener <rguenth@gcc.gnu.org>
Wed, 20 Jul 2011 13:36:30 +0000 (13:36 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 20 Jul 2011 13:36:30 +0000 (13:36 +0000)
commitc56db1005607c9d0fb552280c2065ecbe7bb2b23
tree4c128ff41af2ff7489d956b7ab66a144e7334910
parentdca412a1ddaae99a8672bfbed37fe951f486b6bc
re PR middle-end/18908 (Missed folding opportunities with bools)

2011-07-20  Richard Guenther  <rguenther@suse.de>

PR middle-end/18908
* tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
* tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.

* gcc.dg/tree-ssa/pr18908.c: New testcase.
* gcc.dg/tree-ssa/bitwise-sink.c: Adjust.

From-SVN: r176510
gcc/tree.c