re PR tree-optimization/87473 (ICE in create_add_on_incoming_edge, at gimple-ssa...
authorWilliam Schmidt <wschmidt@gcc.gnu.org>
Fri, 19 Oct 2018 18:28:11 +0000 (18:28 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Fri, 19 Oct 2018 18:28:11 +0000 (18:28 +0000)
commit3146c60f16558e7eae1039ba6c937f75413ce4f9
tree1095403462d7da08f6d6f4b0e38a5135c80d380c
parent273f3d4bb4734845ce527bf92b4781e288e4aae2
re PR tree-optimization/87473 (ICE in create_add_on_incoming_edge, at gimple-ssa-strength-reduction.c:2344)

[gcc]

2018-10-19  Bill Schmidt  <wschmidt@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  <wschmidt@linux.ibm.com>

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

From-SVN: r265319
gcc/gimple-ssa-strength-reduction.c
gcc/testsuite/gcc.c-torture/compile/pr87473.c [new file with mode: 0644]