aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-11-16 17:53:50 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2017-11-16 16:53:50 +0000
commit35a282e0bc285f2b62dd29220a6ef3a3ed87a0b3 (patch)
treefbedd57124aa73e53b8719064b8f00ee975ea934
parentc2e87766d37a191d9e7559b70b1848312355761c (diff)
downloadgcc-35a282e0bc285f2b62dd29220a6ef3a3ed87a0b3.zip
gcc-35a282e0bc285f2b62dd29220a6ef3a3ed87a0b3.tar.gz
gcc-35a282e0bc285f2b62dd29220a6ef3a3ed87a0b3.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-emutls.c7
2 files changed, 5 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 250cda6..aeb2be8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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.
(split_point): Likewise.
(dump_split_point): Likewise.
diff --git a/gcc/tree-emutls.c b/gcc/tree-emutls.c
index 9136a0b..1f9f53d 100644
--- a/gcc/tree-emutls.c
+++ b/gcc/tree-emutls.c
@@ -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 ();