https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81987
--- Comment #9 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Author: wschmidt Date: Wed Sep 6 18:42:56 2017 New Revision: 251815 URL: https://gcc.gnu.org/viewcvs?rev=251815&root=gcc&view=rev Log: [gcc] 2017-09-06 Bill Schmidt <wschm...@linux.vnet.ibm.com> Backport from mainline: 2017-08-30 Bill Schmidt <wschm...@linux.vnet.ibm.com> PR tree-optimization/81987 * gimple-ssa-strength-reduction.c (insert_initializers): Don't insert an initializer in a location not dominated by the stride definition. [gcc/testsuite] 2017-09-06 Bill Schmidt <wschm...@linux.vnet.ibm.com> Backport from mainline: 2017-08-30 Bill Schmidt <wschm...@linux.vnet.ibm.com> PR tree-optimization/81987 * g++.dg/torture/pr81987.C: New file. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/torture/pr81987.C Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/gimple-ssa-strength-reduction.c branches/gcc-7-branch/gcc/testsuite/ChangeLog