re PR tree-optimization/38180 (CCP does not propagate through constant initializers)
authorRichard Guenther <rguenther@suse.de>
Sat, 28 Mar 2009 12:52:13 +0000 (12:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 28 Mar 2009 12:52:13 +0000 (12:52 +0000)
commite8114fbacc9e1f4702e754288d39913d4c8f3f35
tree85a9bc8a34934b447056abbe2c2ba3dddef031c3
parentd3d3011f933aaeb59829db58cc44d19e47e32e22
re PR tree-optimization/38180 (CCP does not propagate through constant initializers)

2009-03-28  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/38180
* tree-ssa-ccp.c (get_default_value): Simplify.
(likely_value): Likewise.
(surely_varying_stmt_p): Properly handle VOP case.
(ccp_initialize): Likewise.
(ccp_fold): Handle propagating through *&.
(fold_const_aggregate_ref): Also handle decls.

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

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