From 226ab0a80879f9d758ba992b2fe06ac1049e8a98 Mon Sep 17 00:00:00 2001 From: William Schmidt Date: Mon, 26 Jun 2017 14:19:33 +0000 Subject: [PATCH] re PR tree-optimization/71815 (SLSR misses several PHI candidate cases) [gcc] 2016-06-26 Bill Schmidt 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 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 | 1 + gcc/testsuite/ChangeLog | 1 + 2 files changed, 2 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fbf52031f52..e41335fafe3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,6 @@ 2016-06-26 Bill Schmidt + 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 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 44ff59b5eb9..9278e959085 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,6 @@ 2016-06-26 Bill Schmidt + PR/tree-optimization 71815 * gcc.dg/tree-ssa/slsr-35.c: Remove -fno-code-hoisting workaround. * gcc.dg/tree-ssa/slsr-36.c: Likewise. -- 2.30.2