tree-emutls.c (lower_emutls_data): Remove unused bb_freq.
authorJan Hubicka <hubicka@ucw.cz>
Thu, 16 Nov 2017 16:53:50 +0000 (17:53 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 16 Nov 2017 16:53:50 +0000 (16:53 +0000)
* tree-emutls.c (lower_emutls_data): Remove unused bb_freq.
(lower_emutls_function_body): Do not compute it.

From-SVN: r254836

gcc/ChangeLog
gcc/tree-emutls.c

index 250cda6537a3a60e8d832eae553110ee3b9b5b6c..aeb2be820046e4bbb64fadb3d84768e23fbdab81 100644 (file)
@@ -1,3 +1,8 @@
+2017-11-16  Jan Hubicka  <hubicka@ucw.cz>
+
+       * tree-emutls.c (lower_emutls_data): Remove unused bb_freq.
+       (lower_emutls_function_body): Do not compute it.
+
 2017-11-16  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-split.c (split_bb_info): Turn time to sreal.
index 9136a0b28566e933498b142b8f442d39c5593eb7..1f9f53ddc95d21c7ee7d7148037030090c6763b2 100644 (file)
@@ -383,7 +383,6 @@ struct lower_emutls_data
   struct cgraph_node *builtin_node;
   tree builtin_decl;
   basic_block bb;
-  int bb_freq;
   location_t loc;
   gimple_seq seq;
 };
@@ -622,10 +621,6 @@ lower_emutls_function_body (struct cgraph_node *node)
         PHI argument for that edge.  */
       if (!gimple_seq_empty_p (phi_nodes (d.bb)))
        {
-         /* The calls will be inserted on the edges, and the frequencies
-            will be computed during the commit process.  */
-         d.bb_freq = 0;
-
          nedge = EDGE_COUNT (d.bb->preds);
          for (i = 0; i < nedge; ++i)
            {
@@ -650,8 +645,6 @@ lower_emutls_function_body (struct cgraph_node *node)
            }
        }
 
-      d.bb_freq = compute_call_stmt_bb_frequency (current_function_decl, d.bb);
-
       /* We can re-use any SSA_NAME created during this basic block.  */
       clear_access_vars ();