aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-loop-linear.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-03-16 10:11:14 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-03-16 10:11:14 +0000
commit7b1737d07a6b869120d7fca9bd755c9e426a0bfe (patch)
tree6c8e4f3d768e11469247eb484982dd5b0f51b792 /gcc/tree-loop-linear.c
parent3811dfcdcdfedc8461aacb29b64c4fd6c0ef10ad (diff)
downloadgcc-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