aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphclones.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r--gcc/cgraphclones.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c
index f2dfb4e..dbdeb45 100644
--- a/gcc/cgraphclones.c
+++ b/gcc/cgraphclones.c
@@ -450,7 +450,8 @@ cgraph_node::create_clone (tree new_decl, profile_count prof_count,
&& opt_for_fn (decl, flag_profile_partial_training)
&& nonzero
&& count.ipa_p ()
- && !count.ipa ().nonzero_p ())
+ && !count.ipa ().nonzero_p ()
+ && !inlined_to)
localize_profile (this);
if (!new_inlined_to)