aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 5910745..b0d9beb 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -2683,8 +2683,6 @@ copy_cfg_body (copy_body_data * id,
profile_count den = ENTRY_BLOCK_PTR_FOR_FN (src_cfun)->count;
profile_count num = entry_block_map->count;
- profile_count::adjust_for_ipa_scaling (&num, &den);
-
cfun_to_copy = id->src_cfun = DECL_STRUCT_FUNCTION (callee_fndecl);
/* Register specific tree functions. */
@@ -2707,6 +2705,8 @@ copy_cfg_body (copy_body_data * id,
ENTRY_BLOCK_PTR_FOR_FN (cfun)->count = den;
}
+ profile_count::adjust_for_ipa_scaling (&num, &den);
+
/* Must have a CFG here at this point. */
gcc_assert (ENTRY_BLOCK_PTR_FOR_FN
(DECL_STRUCT_FUNCTION (callee_fndecl)));