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/cgraphbuild.c | |
parent | 648f8fc59b2cc39abd24f4c22388b346cdebcc31 (diff) | |
parent | 50221fae802a10fafe95e61d40504a58da33e98f (diff) | |
download | gcc-linaro-dev/sve.tar.gz |
Merge trunk into svelinaro-dev/sve
Diffstat (limited to 'gcc/cgraphbuild.c')
-rw-r--r-- | gcc/cgraphbuild.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/gcc/cgraphbuild.c b/gcc/cgraphbuild.c index dd4bf9a7fa3..efb333cbae0 100644 --- a/gcc/cgraphbuild.c +++ b/gcc/cgraphbuild.c @@ -317,17 +317,15 @@ pass_build_cgraph_edges::execute (function *fun) if (gcall *call_stmt = dyn_cast <gcall *> (stmt)) { - int freq = compute_call_stmt_bb_frequency (current_function_decl, - bb); decl = gimple_call_fndecl (call_stmt); if (decl) - node->create_edge (cgraph_node::get_create (decl), call_stmt, bb->count, freq); + node->create_edge (cgraph_node::get_create (decl), call_stmt, bb->count); else if (gimple_call_internal_p (call_stmt)) ; else node->create_indirect_edge (call_stmt, gimple_call_flags (call_stmt), - bb->count, freq); + bb->count); } node->record_stmt_references (stmt); if (gomp_parallel *omp_par_stmt = dyn_cast <gomp_parallel *> (stmt)) @@ -402,7 +400,7 @@ cgraph_edge::rebuild_edges (void) node->remove_callees (); node->remove_all_references (); - node->count = ENTRY_BLOCK_PTR_FOR_FN (cfun)->count.ipa (); + node->count = ENTRY_BLOCK_PTR_FOR_FN (cfun)->count; FOR_EACH_BB_FN (bb, cfun) { @@ -413,18 +411,16 @@ cgraph_edge::rebuild_edges (void) if (gcall *call_stmt = dyn_cast <gcall *> (stmt)) { - int freq = compute_call_stmt_bb_frequency (current_function_decl, - bb); decl = gimple_call_fndecl (call_stmt); if (decl) node->create_edge (cgraph_node::get_create (decl), call_stmt, - bb->count, freq); + bb->count); else if (gimple_call_internal_p (call_stmt)) ; else node->create_indirect_edge (call_stmt, gimple_call_flags (call_stmt), - bb->count, freq); + bb->count); } node->record_stmt_references (stmt); } |