pr17141-2.c
449 Bytes
-
Makefile.in (tree-ssa-forwprop.o): Depend on langhooks.h. · a564d0f1
* Makefile.in (tree-ssa-forwprop.o): Depend on langhooks.h. * tree-ssa-forwprop.c: Include langhooks.h. (forward_propagate_addr_expr_into_variable_array_index): New. (forward_propagate_addr_expr): New. (tree_ssa_forward_propagate_single_use_vars): Loop over all the statements in the block instead of just the last statement. Call forward_propagate_addr_expr as needed. (pass_forwprop): Update the SSA graph after forward propagation is complete. * g++.dg/tree-ssa/pr18414.C: New test. * gcc.dg/tree-ssa/pr18414.C: New test. * gcc.dg/tree-ssa/pr17141-1.C: New test. * gcc.dg/tree-ssa/pr17141-2.C: New test. From-SVN: r99837
Jeff Law committed