https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71815
--- Comment #11 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Author: wschmidt Date: Mon Jun 26 14:19:33 2017 New Revision: 249649 URL: https://gcc.gnu.org/viewcvs?rev=249649&root=gcc&view=rev Log: [gcc] 2016-06-26 Bill Schmidt <wschm...@linux.vnet.ibm.com> PR tree-optimization/71815 * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New function. (find_basis_for_candidate): Call uses_consumed_by_stmt rather than has_single_use. (slsr_process_phi): Likewise. (replace_uncond_cands_and_profitable_phis): Don't replace a multiply candidate with a stride of 1 (copy or cast). (phi_incr_cost): Call uses_consumed_by_stmt rather than has_single_use. (lowest_cost_path): Likewise. (total_savings): Likewise. [gcc/testsuite] 2016-06-26 Bill Schmidt <wschm...@linux.vnet.ibm.com> PR tree-optimization/71815 * gcc.dg/tree-ssa/slsr-35.c: Remove -fno-code-hoisting workaround. * gcc.dg/tree-ssa/slsr-36.c: Likewise. Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog