re PR tree-optimization/71815 (SLSR misses several PHI candidate cases)
authorWilliam Schmidt <wschmidt@gcc.gnu.org>
Mon, 26 Jun 2017 14:19:33 +0000 (14:19 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Mon, 26 Jun 2017 14:19:33 +0000 (14:19 +0000)
[gcc]

2016-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/71815
* gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
function.
(find_basis_for_candidate): Call uses_consumed_by_stmt rather than
has_single_use.
(slsr_process_phi): Likewise.
(replace_uncond_cands_and_profitable_phis): Don't replace a
multiply candidate with a stride of 1 (copy or cast).
(phi_incr_cost): Call uses_consumed_by_stmt rather than
has_single_use.
(lowest_cost_path): Likewise.
(total_savings): Likewise.

[gcc/testsuite]

2016-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/71815
* gcc.dg/tree-ssa/slsr-35.c: Remove -fno-code-hoisting workaround.
* gcc.dg/tree-ssa/slsr-36.c: Likewise.

From-SVN: r249649

gcc/ChangeLog
gcc/testsuite/ChangeLog

index fbf52031f5292d53b1f21c8736e7646e54c61821..e41335fafe3f508959f6242db34ec935b12ed61d 100644 (file)
@@ -1,5 +1,6 @@
 2016-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
+       PR tree-optimization/71815
        * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
        function.
        (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
index 44ff59b5eb951533b349a43366a215dcd88011fc..9278e9590856cfd7c17a0643e539a7d2ebd93577 100644 (file)
@@ -1,5 +1,6 @@
 2016-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
+       PR/tree-optimization 71815
        * gcc.dg/tree-ssa/slsr-35.c: Remove -fno-code-hoisting workaround.
        * gcc.dg/tree-ssa/slsr-36.c: Likewise.