Remove unnecessary label from tree-call-cdce.c
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Oct 2015 15:18:14 +0000 (15:18 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Oct 2015 15:18:14 +0000 (15:18 +0000)
Tested on x86_64-linux-gnu, arm-linux-gnueabi and aarch64-linux-gnu.

gcc/
* tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
unnecessary label.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229531 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-call-cdce.c

index a088c13..8f4cc17 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
+
+       * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
+       unnecessary label.
+
 2015-10-29  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/68142
index 5eb96fe..400ca16 100644 (file)
@@ -724,8 +724,6 @@ shrink_wrap_one_built_in_call (gcall *bi_call)
   unsigned ci;
   gimple *cond_expr = NULL;
   gimple *cond_expr_start;
-  tree bi_call_label_decl;
-  gimple *bi_call_label;
 
   auto_vec<gimple *, 12> conds;
   gen_shrink_wrap_conditions (bi_call, conds, &nconds);
@@ -774,11 +772,6 @@ shrink_wrap_one_built_in_call (gcall *bi_call)
   ci++;
   gcc_assert (cond_expr && gimple_code (cond_expr) == GIMPLE_COND);
 
-  /* Now the label.  */
-  bi_call_label_decl = create_artificial_label (gimple_location (bi_call));
-  bi_call_label = gimple_build_label (bi_call_label_decl);
-  gsi_insert_before (&bi_call_bsi, bi_call_label, GSI_SAME_STMT);
-
   bi_call_in_edge0 = split_block (bi_call_bb, cond_expr);
   bi_call_in_edge0->flags &= ~EDGE_FALLTHRU;
   bi_call_in_edge0->flags |= EDGE_TRUE_VALUE;