diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-11-20 16:02:55 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@linaro.org> | 2017-11-20 16:02:55 +0000 |
commit | d58952aefb03632bbb5b441d5c0bd330711f0af1 (patch) | |
tree | d046e56bfbd6a40106ae6ab96fafc954f1dfc955 /gcc/gimple-iterator.c | |
parent | 648f8fc59b2cc39abd24f4c22388b346cdebcc31 (diff) | |
parent | 50221fae802a10fafe95e61d40504a58da33e98f (diff) | |
download | gcc-linaro-dev/sve.tar.gz |
Merge trunk into svelinaro-dev/sve
Diffstat (limited to 'gcc/gimple-iterator.c')
-rw-r--r-- | gcc/gimple-iterator.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/gimple-iterator.c b/gcc/gimple-iterator.c index 3b74cc540f6..d9d02d305ef 100644 --- a/gcc/gimple-iterator.c +++ b/gcc/gimple-iterator.c @@ -83,7 +83,6 @@ static void update_call_edge_frequencies (gimple_seq_node first, basic_block bb) { struct cgraph_node *cfun_node = NULL; - int bb_freq = 0; gimple_seq_node n; for (n = first; n ; n = n->next) @@ -94,15 +93,11 @@ update_call_edge_frequencies (gimple_seq_node first, basic_block bb) /* These function calls are expensive enough that we want to avoid calling them if we never see any calls. */ if (cfun_node == NULL) - { - cfun_node = cgraph_node::get (current_function_decl); - bb_freq = (compute_call_stmt_bb_frequency - (current_function_decl, bb)); - } + cfun_node = cgraph_node::get (current_function_decl); e = cfun_node->get_edge (n); if (e != NULL) - e->frequency = bb_freq; + e->count = bb->count; } } |