re PR middle-end/18908 (Missed folding opportunities with bools)
authorRichard Guenther <rguenther@suse.de>
Wed, 20 Jul 2011 13:35:20 +0000 (13:35 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 20 Jul 2011 13:35:20 +0000 (13:35 +0000)
commitdca412a1ddaae99a8672bfbed37fe951f486b6bc
tree3997651a823f3fea3135b0089b972faf3df8feab
parent73d7e2662e438cc5e49b65a3df31a83844906eab
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: r176508
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/bitwise-sink.c
gcc/testsuite/gcc.dg/tree-ssa/pr18908.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.c