Commit 35a282e0 by Jan Hubicka Committed by Jan Hubicka

tree-emutls.c (lower_emutls_data): Remove unused bb_freq.


	* tree-emutls.c (lower_emutls_data): Remove unused bb_freq.
	(lower_emutls_function_body): Do not compute it.

From-SVN: r254836
parent c2e87766
2017-11-16 Jan Hubicka <hubicka@ucw.cz> 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. * ipa-split.c (split_bb_info): Turn time to sreal.
(split_point): Likewise. (split_point): Likewise.
(dump_split_point): Likewise. (dump_split_point): Likewise.
...@@ -383,7 +383,6 @@ struct lower_emutls_data ...@@ -383,7 +383,6 @@ struct lower_emutls_data
struct cgraph_node *builtin_node; struct cgraph_node *builtin_node;
tree builtin_decl; tree builtin_decl;
basic_block bb; basic_block bb;
int bb_freq;
location_t loc; location_t loc;
gimple_seq seq; gimple_seq seq;
}; };
...@@ -622,10 +621,6 @@ lower_emutls_function_body (struct cgraph_node *node) ...@@ -622,10 +621,6 @@ lower_emutls_function_body (struct cgraph_node *node)
PHI argument for that edge. */ PHI argument for that edge. */
if (!gimple_seq_empty_p (phi_nodes (d.bb))) 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); nedge = EDGE_COUNT (d.bb->preds);
for (i = 0; i < nedge; ++i) for (i = 0; i < nedge; ++i)
{ {
...@@ -650,8 +645,6 @@ lower_emutls_function_body (struct cgraph_node *node) ...@@ -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. */ /* We can re-use any SSA_NAME created during this basic block. */
clear_access_vars (); clear_access_vars ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment