From 6e281ce309a6382f3bf11787156baf8802e48194 Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Tue, 26 Jul 2016 14:13:52 +0000 Subject: [PATCH] gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead and unnecessary call to gimple_bb. 2016-07-26 Bill Schmidt * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead and unnecessary call to gimple_bb. From-SVN: r238758 --- gcc/ChangeLog | 5 +++++ gcc/gimple-ssa-strength-reduction.c | 8 ++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6c9a3b668e6..ecb16027cf7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-07-26 Bill Schmidt + + * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead + and unnecessary call to gimple_bb. + 2016-07-26 Richard Biener PR rtl-optimization/71984 diff --git a/gcc/gimple-ssa-strength-reduction.c b/gcc/gimple-ssa-strength-reduction.c index 6e277e7ecde..9e0b3d1d162 100644 --- a/gcc/gimple-ssa-strength-reduction.c +++ b/gcc/gimple-ssa-strength-reduction.c @@ -785,14 +785,10 @@ slsr_process_phi (gphi *phi, bool speed) savings += stmt_cost (arg_stmt, speed); } } - else + else if (SSA_NAME_IS_DEFAULT_DEF (arg)) { derived_base_name = arg; - - if (SSA_NAME_IS_DEFAULT_DEF (arg)) - arg_bb = single_succ (ENTRY_BLOCK_PTR_FOR_FN (cfun)); - else - gimple_bb (SSA_NAME_DEF_STMT (arg)); + arg_bb = single_succ (ENTRY_BLOCK_PTR_FOR_FN (cfun)); } if (!arg_bb || arg_bb->loop_father != cand_loop)