tree-ssa-forwprop.c (combine_conversions): Pattern-match a series of conversions...
authorRichard Guenther <rguenther@suse.de>
Tue, 10 May 2011 09:57:50 +0000 (09:57 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 10 May 2011 09:57:50 +0000 (09:57 +0000)
commitbe17328916770319a04f236f42aaf12404bad162
tree29206a7d5e93403b2d8ad01b15c16501a9d9603c
parent6ae70ea2e6f12a97415896b4721bf4df536e3b09
tree-ssa-forwprop.c (combine_conversions): Pattern-match a series of conversions and apply foldings similar to what...

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

* tree-ssa-forwprop.c (combine_conversions): Pattern-match
a series of conversions and apply foldings similar to what
fold-const does.
(tree_ssa_forward_propagate_single_use_vars): Call it.

* gcc.dg/tree-ssa/ssa-fre-2.c: Disable forwprop.
* gcc.dg/tree-ssa/ssa-fre-3.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-4.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-5.c: Likewise.
* gcc.dg/tree-ssa/scev-cast.c: Adjust.  Note what transformation
applies.

From-SVN: r173612
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/scev-cast.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-2.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-3.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-4.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-5.c
gcc/tree-ssa-forwprop.c