re PR tree-optimization/77824 (unreachable code in SLSR GIMPLE pass)
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 10 Oct 2016 18:39:41 +0000 (18:39 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Mon, 10 Oct 2016 18:39:41 +0000 (18:39 +0000)
commitfbcdc43e3c209613bab6a58252eab3a6f436d7b1
treeb44bb2b6cb820d025263e0f0a3e07607b3faf9b2
parente2be44770cb4cb5e81680d77b2f9ca350c0e346c
re PR tree-optimization/77824 (unreachable code in SLSR GIMPLE pass)

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

PR tree-optimization/77824
* gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
zero cost for copies.
(find_candidates_dom_walker::before_dom_children): Replace
MODIFY_EXPR with SSA_NAME.
(replace_mult_candidate): Likewise.
(replace_profitable_candidates): Likewise.

From-SVN: r240945
gcc/ChangeLog
gcc/gimple-ssa-strength-reduction.c