diff options
author | Richard Guenther <rguenther@suse.de> | 2007-03-16 10:11:14 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-03-16 10:11:14 +0000 |
commit | 7b1737d07a6b869120d7fca9bd755c9e426a0bfe (patch) | |
tree | 6c8e4f3d768e11469247eb484982dd5b0f51b792 /gcc/tree-loop-linear.c | |
parent | 3811dfcdcdfedc8461aacb29b64c4fd6c0ef10ad (diff) | |
download | gcc-7b1737d07a6b869120d7fca9bd755c9e426a0bfe.zip gcc-7b1737d07a6b869120d7fca9bd755c9e426a0bfe.tar.gz gcc-7b1737d07a6b869120d7fca9bd755c9e426a0bfe.tar.bz2 |
re PR tree-optimization/31146 (forwprop does not look through casts)
2007-03-16 Richard Guenther <rguenther@suse.de>
PR tree-optimization/31146
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
to allow recursion of forward_propagate_addr_expr.
(forward_propagate_addr_into_variable_array_index): Likewise.
(forward_propagate_addr_expr): Likewise.
(tree_ssa_forward_propagate_single_use_vars): Likewise.
(forward_propagate_addr_expr_1): Recurse on simple copies
instead of propagating into them. Do so for useless conversions
as well.
(forward_propagate_addr_expr): Clean up unused statements after
recursion.
* g++.dg/tree-ssa/pr31146.C: New testcase.
From-SVN: r122985
Diffstat (limited to 'gcc/tree-loop-linear.c')
0 files changed, 0 insertions, 0 deletions