2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
commit379135f864320b0318aab475144940aa156fa743
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Mar 2017 12:34:19 +0000 (24 12:34 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Mar 2017 12:34:19 +0000 (24 12:34 +0000)
treed382d78d79d1cc23614ac44897d54c00113ca88a
parent829d561487e272a6f6be3b3ffa13acb973208247
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246439 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-ssa-strength-reduction.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/compile/pr80158.f [new file with mode: 0644]