https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87473

--- Comment #6 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Author: wschmidt
Date: Fri Oct 19 18:28:11 2018
New Revision: 265319

URL: https://gcc.gnu.org/viewcvs?rev=265319&root=gcc&view=rev
Log:
[gcc]

2018-10-19  Bill Schmidt  <wschm...@linux.ibm.com>

        PR tree-optimization/87473
        * gimple-ssa-strength-reduction.c (record_phi_increments_1): For
        phi arguments identical to the base expression of the phi
        candidate, record a phi-adjust increment of zero minus the index
        expression of the hidden basis.
        (phi_incr_cost_1): For phi arguments identical to the base
        expression of the phi candidate, the difference to compare against
        the increment is zero minus the index expression of the hidden
        basis, and there is no potential savings from replacing the (phi)
        statement.
        (ncd_with_phi): For phi arguments identical to the base expression
        of the phi candidate, the difference to compare against the
        increment is zero minus the index expression of the hidden basis.
        (all_phi_incrs_profitable_1): For phi arguments identical to the
        base expression of the phi candidate, the increment to be checked
        for profitability is zero minus the index expression of the hidden
        basis.

[gcc/testsuite]

2018-10-19  Bill Schmidt  <wschm...@linux.ibm.com>

        PR tree-optimization/87473
        * gcc.c-torture/compile/pr87473.c: New file.


Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr87473.c
Modified:
    trunk/gcc/gimple-ssa-strength-reduction.c

Reply via email to