diff options
author | Richard Guenther <rguenther@suse.de> | 2008-03-15 18:22:26 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-03-15 18:22:26 +0000 |
commit | 87e1e42b707bfc714a970c912da511bce72cfdb7 (patch) | |
tree | 91d6796e36eb2d8677834e63073b7541cc505389 /depcomp | |
parent | 107276837fb7b50449dc3f1a5ad3d48c82661094 (diff) | |
download | gcc-87e1e42b707bfc714a970c912da511bce72cfdb7.zip gcc-87e1e42b707bfc714a970c912da511bce72cfdb7.tar.gz gcc-87e1e42b707bfc714a970c912da511bce72cfdb7.tar.bz2 |
tree-ssa-ccp.c (ccp_fold): Also read from constant values and fold constant aggregate refs.
2008-03-15 Richard Guenther <rguenther@suse.de>
* tree-ssa-ccp.c (ccp_fold): Also read from constant values
and fold constant aggregate refs.
(fold_const_aggregate_ref): Handle string constants
and constructors in ARRAY_REFs. Handle INDIRECT_REF.
(evaluate_stmt): Simplify now that ccp_fold folds constant
aggregate refs.
* gcc.dg/tree-ssa/ssa-ccp-16.c: New testcase.
From-SVN: r133257
Diffstat (limited to 'depcomp')
0 files changed, 0 insertions, 0 deletions