re PR tree-optimization/15256 ([tree-ssa] Optimize manual bitfield manipilation.)
authorRichard Guenther <rguenther@suse.de>
Wed, 11 May 2011 14:13:38 +0000 (14:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 11 May 2011 14:13:38 +0000 (14:13 +0000)
commit51e020fc08daf1c62eb4d78cee4e8d2d0172c7e6
treef6fe582ca34e43fa86ffc5ab363666d20a91ea44
parent515456820e0468b848ff5905d6d8439a47036fdc
re PR tree-optimization/15256 ([tree-ssa] Optimize manual bitfield manipilation.)

2011-05-11  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/15256
* tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
(A & B) | C, combine (A op CST1) op CST2.
(tree_ssa_forward_propagate_single_use_vars): Only bother to
visit assigns that have uses.

* gcc.dg/tree-ssa/forwprop-14.c: New testcase.

From-SVN: r173659
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/forwprop-14.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.c