re PR tree-optimization/56175 (Issue with combine phase on x86.)
authorRichard Biener <rguenther@suse.de>
Mon, 25 Feb 2013 15:31:31 +0000 (15:31 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 25 Feb 2013 15:31:31 +0000 (15:31 +0000)
commit259ee451e5455640a2ca975d45725496e08fab8e
tree2fae06852bcfc3d5f8c5c7798fab758d652f646e
parent5621a5d7b10710eb5dac52ee668c711bcc42fa72
re PR tree-optimization/56175 (Issue with combine phase on x86.)

2013-02-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/56175
* tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
split out from ...
(simplify_bitwise_binary): ... here.  Also guard the conversion
of (type) X op CST to (type) (X op ((type-x) CST)) with it.

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

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