diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-06-11 01:07:11 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-06-10 23:07:11 +0000 |
commit | 1511c8c005d91ff2af7010d852fe83bdde0fd3f3 (patch) | |
tree | 198bd5ad2351d27130053b58e510149c5894f984 /gcc/tree-inline.c | |
parent | 9a58d6cdbf24c9680f70ff84b21749f5aa1c196f (diff) | |
download | gcc-1511c8c005d91ff2af7010d852fe83bdde0fd3f3.zip gcc-1511c8c005d91ff2af7010d852fe83bdde0fd3f3.tar.gz gcc-1511c8c005d91ff2af7010d852fe83bdde0fd3f3.tar.bz2 |
cgraph.h (cgraph_edge::clone): Update prototype.
* cgraph.h (cgraph_edge::clone): Update prototype.
* cgraphclones.c (cgraph_edge::clone): Update profile scaling.
(cgraph_node::create_clone): Update.
(cgraph_node::create_version_clone): Update.
* tree-inline.c (copy_bb): Update.
(expand_call_inline): Update.
From-SVN: r249097
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 3298001..aea8a79 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -2009,7 +2009,9 @@ copy_bb (copy_body_data *id, basic_block bb, int frequency_scale, struct cgraph_edge *old_edge = edge; edge = edge->clone (id->dst_node, call_stmt, gimple_uid (stmt), - REG_BR_PROB_BASE, CGRAPH_FREQ_BASE, + profile_count::one (), + profile_count::one (), + CGRAPH_FREQ_BASE, true); /* We could also just rescale the frequency, but doing so would introduce roundoff errors and make @@ -2028,7 +2030,9 @@ copy_bb (copy_body_data *id, basic_block bb, int frequency_scale, old_edge->speculative_call_info (direct, indirect, ref); indirect = indirect->clone (id->dst_node, call_stmt, gimple_uid (stmt), - REG_BR_PROB_BASE, CGRAPH_FREQ_BASE, + profile_count::one (), + profile_count::one (), + CGRAPH_FREQ_BASE, true); if (old_edge->frequency + indirect->frequency) { @@ -4509,7 +4513,9 @@ expand_call_inline (basic_block bb, gimple *stmt, copy_body_data *id) cg_edge->remove (); edge = id->src_node->callees->clone (id->dst_node, call_stmt, gimple_uid (stmt), - REG_BR_PROB_BASE, CGRAPH_FREQ_BASE, + profile_count::one (), + profile_count::one (), + CGRAPH_FREQ_BASE, true); edge->frequency = freq; edge->count = count; |