diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2019-12-06 09:51:43 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-12-06 08:51:43 +0000 |
commit | f7f6be76baf19eab6830870f4a63e17755552577 (patch) | |
tree | 0d489ae3ac8b1005f292099a8760fe9f7c893495 | |
parent | b51200e26fbbb4bc69bce2d29d6a696abd158280 (diff) | |
download | gcc-f7f6be76baf19eab6830870f4a63e17755552577.zip gcc-f7f6be76baf19eab6830870f4a63e17755552577.tar.gz gcc-f7f6be76baf19eab6830870f4a63e17755552577.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cgraphclones.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9108027..beac212 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2019-12-06 Jan Hubicka <hubicka@ucw.cz> + * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel + functions, not inline clones. + +2019-12-06 Jan Hubicka <hubicka@ucw.cz> + * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR. 2019-12-06 Richard Biener <rguenther@suse.de> 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) |