From f7f6be76baf19eab6830870f4a63e17755552577 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 6 Dec 2019 09:51:43 +0100 Subject: [PATCH] cgraphclones.c (cgraph_node::create_clone): Only localize toplevel functions, not inline clones. * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel functions, not inline clones. From-SVN: r279036 --- gcc/ChangeLog | 5 +++++ gcc/cgraphclones.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9108027b334..beac212417d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-12-06 Jan Hubicka + + * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel + functions, not inline clones. + 2019-12-06 Jan Hubicka * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR. diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index f2dfb4e2d67..dbdeb4510b4 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) -- 2.30.2