https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82337
--- Comment #15 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Author: wschmidt Date: Mon Oct 2 18:10:40 2017 New Revision: 253361 URL: https://gcc.gnu.org/viewcvs?rev=253361&root=gcc&view=rev Log: [gcc] 2017-10-02 Bill Schmidt <wschm...@linux.vnet.ibm.com> Backport from mainline 2017-09-29 Bill Schmidt <wschm...@linux.vnet.ibm.com> PR tree-optimization/82337 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a phi definition if the PHI result appears in an abnormal PHI. (find_basis_for_base_expr): Don't record a basis if the LHS of the basis appears in an abnormal PHI. [gcc] 2017-10-02 Bill Schmidt <wschm...@linux.vnet.ibm.com> Backport from mainline 2017-09-29 Bill Schmidt <wschm...@linux.vnet.ibm.com> PR tree-optimization/82337 * gcc.c-torture/compile/pr82337.c: New file. Added: branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/compile/pr82337.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