tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code style issue.
authorBin Cheng <bin.cheng@arm.com>
Thu, 13 Oct 2016 10:22:57 +0000 (10:22 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Thu, 13 Oct 2016 10:22:57 +0000 (10:22 +0000)
* tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
style issue.
(vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
Remove useless code.

From-SVN: r241092

gcc/ChangeLog
gcc/tree-vect-loop-manip.c

index 6b431037fc43e39bb7340d57207424d24f0e46e6..449a759f45821823b9846bee6f4f547f06838376 100644 (file)
@@ -1,3 +1,10 @@
+2016-10-13  Bin Cheng  <bin.cheng@arm.com>
+
+       * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
+       style issue.
+       (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
+       Remove useless code.
+
 2016-10-13  Martin Liska  <mliska@suse.cz>
 
        PR tree-optimization/77943
index a715fd931ce3d4ff747fabf2be423024791d1de5..e6c297c76fe2d2800516993dc64d629714bd7f09 100644 (file)
@@ -1003,9 +1003,9 @@ slpeel_can_duplicate_loop_p (const struct loop *loop, const_edge e)
   gimple_stmt_iterator loop_exit_gsi = gsi_last_bb (exit_e->src);
   unsigned int num_bb = loop->inner? 5 : 2;
 
-      /* All loops have an outer scope; the only case loop->outer is NULL is for
-         the function itself.  */
-      if (!loop_outer (loop)
+  /* All loops have an outer scope; the only case loop->outer is NULL is for
+     the function itself.  */
+  if (!loop_outer (loop)
       || loop->num_nodes != num_bb
       || !empty_block_p (loop->latch)
       || !single_exit (loop)
@@ -1786,7 +1786,6 @@ vect_do_peeling_for_loop_bound (loop_vec_info loop_vinfo,
   struct loop *new_loop;
   edge update_e;
   basic_block preheader;
-  int loop_num;
   int max_iter;
   tree cond_expr = NULL_TREE;
   gimple_seq cond_expr_stmt_list = NULL;
@@ -1797,8 +1796,6 @@ vect_do_peeling_for_loop_bound (loop_vec_info loop_vinfo,
 
   initialize_original_copy_tables ();
 
-  loop_num  = loop->num;
-
   new_loop
     = slpeel_tree_peel_loop_to_edge (loop, scalar_loop, single_exit (loop),
                                     &ratio_mult_vf_name, ni_name, false,
@@ -1806,7 +1803,6 @@ vect_do_peeling_for_loop_bound (loop_vec_info loop_vinfo,
                                     cond_expr, cond_expr_stmt_list,
                                     0, LOOP_VINFO_VECT_FACTOR (loop_vinfo));
   gcc_assert (new_loop);
-  gcc_assert (loop_num == loop->num);
   slpeel_checking_verify_cfg_after_peeling (loop, new_loop);
 
   /* A guard that controls whether the new_loop is to be executed or skipped
@@ -2053,8 +2049,6 @@ vect_do_peeling_for_alignment (loop_vec_info loop_vinfo, tree ni_name,
 
   initialize_original_copy_tables ();
 
-  gimple_seq stmts = NULL;
-  gsi_insert_seq_on_edge_immediate (loop_preheader_edge (loop), stmts);
   niters_of_prolog_loop = vect_gen_niters_for_prolog_loop (loop_vinfo,
                                                           ni_name,
                                                           &bound);