re PR tree-optimization/31146 (forwprop does not look through casts)
2007-05-02 Richard Guenther <rguenther@suse.de> PR tree-optimization/31146 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New argument, single_use_p. If we have a single use that is a conversion to the definition rhs type, propagate that rhs. (forward_propagate_addr_expr): Pass single_use_p argument to forward_propagate_addr_expr_1. * g++.dg/tree-ssa/pr31146-2.C: New testcase. From-SVN: r124349
Showing
gcc/testsuite/g++.dg/tree-ssa/pr31146-2.C
0 → 100644
Please
register
or
sign in
to comment