re PR tree-optimization/80158 (ICE in all_phi_incrs_profitable)
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Fri, 24 Mar 2017 12:34:19 +0000 (12:34 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 24 Mar 2017 12:34:19 +0000 (12:34 +0000)
commit635684c4cf2c3672017cda0df400213b0ca2d10b
treed382d78d79d1cc23614ac44897d54c00113ca88a
parent76afddf36b915170493dfd0c1f28bb85bec808ad
re PR tree-optimization/80158 (ICE in all_phi_incrs_profitable)

2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/80158
* gimple-ssa-strength-reduction.c (replace_mult_candidate): When
replacing a candidate statement, also replace it for the
candidate's alternate interpretation.
(replace_rhs_if_not_dup): Likewise.
(replace_one_candidate): Likewise.

* gfortran.fortran-torture/compile/pr80158.f: New file.

From-SVN: r246439
gcc/ChangeLog
gcc/gimple-ssa-strength-reduction.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/compile/pr80158.f [new file with mode: 0644]