https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80054
--- Comment #5 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Author: wschmidt Date: Mon Mar 20 20:04:25 2017 New Revision: 246290 URL: https://gcc.gnu.org/viewcvs?rev=246290&root=gcc&view=rev Log: [gcc] 2017-03-20 Bill Schmidt <wschm...@linux.vnet.ibm.com> PR tree-optimization/80054 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail the optimization if a PHI or any of its arguments is not dominated by the candidate's basis. Use gphi* rather than gimple* as appropriate. (replace_profitable_candidates): Clean up a gimple* variable that should be a gphi* variable. [gcc/testsuite] 2017-03-20 Bill Schmidt <wschm...@linux.vnet.ibm.com> PR tree-optimization/80054 * g++.dg/torture/pr80054.C: New file. Added: trunk/gcc/testsuite/g++.dg/torture/pr80054.C Modified: trunk/gcc/ChangeLog trunk/gcc/gimple-ssa-strength-reduction.c trunk/gcc/testsuite/ChangeLog