https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77937
--- Comment #15 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Author: wschmidt Date: Mon Oct 17 14:24:21 2016 New Revision: 241244 URL: https://gcc.gnu.org/viewcvs?rev=241244&root=gcc&view=rev Log: [gcc] 2016-10-17 Bill Schmidt <wschm...@linux.vnet.ibm.com> Backport from mainline 2016-10-12 Bill Schmidt <wschm...@linux.vnet.ibm.com> PR tree-optimization/77937 * gimple-ssa-strength-reduction.c (analyze_increments): Use POINTER_TYPE_P on the candidate type to determine whether candidates in this chain require pointer arithmetic. 2016-10-13 Bill Schmidt <wschm...@linux.vnet.ibm.com> PR tree-optimization/77937 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost to infinite when we have a pointer with an increment of -1. [gcc/testsuite] 2016-10-17 Bill Schmidt <wschm...@linux.vnet.ibm.com> Backport from mainline 2016-10-13 Bill Schmidt <wschm...@linux.vnet.ibm.com> PR tree-optimization/77937 * gcc.dg/torture/pr77937-1.c: New. * gcc.dg/torture/pr77937-2.c: New. Added: branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr77937-1.c branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr77937-2.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/gimple-ssa-strength-reduction.c branches/gcc-5-branch/gcc/testsuite/ChangeLog