re PR middle-end/18041 (OR of two single-bit bitfields is inefficient)
authorRichard Guenther <rguenther@suse.de>
Wed, 11 May 2011 10:52:57 +0000 (10:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 11 May 2011 10:52:57 +0000 (10:52 +0000)
commit10c224a9b0780fe3ae5d83a588046887203f2285
treefd9a3746cb25bbcc5e49f7019b461cb872498273
parent825b27deb98d103766b049ec879ccc423707467b
re PR middle-end/18041 (OR of two single-bit bitfields is inefficient)

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

PR tree-optimization/18041
* tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
(simplify_bitwise_binary): ... this.  Handle operand conversions
by applying them to the result instead.
(tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.

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

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