gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead and unnecessary call...
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Tue, 26 Jul 2016 14:13:52 +0000 (14:13 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Tue, 26 Jul 2016 14:13:52 +0000 (14:13 +0000)
2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
and unnecessary call to gimple_bb.

From-SVN: r238758

gcc/ChangeLog
gcc/gimple-ssa-strength-reduction.c

index 6c9a3b668e64036194a223795d9e9ef155f5dd2d..ecb16027cf756b355566e4f91920e863d784fdde 100644 (file)
@@ -1,3 +1,8 @@
+2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
+
+       * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
+       and unnecessary call to gimple_bb.
+
 2016-07-26  Richard Biener  <rguenther@suse.de>
 
        PR rtl-optimization/71984
index 6e277e7ecde11914911b64c39c7613cbbb973770..9e0b3d1d162d97cd9c14befb8f44206c6b719ec9 100644 (file)
@@ -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)