aboutsummaryrefslogtreecommitdiff
path: root/gcc/profile-count.h
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-11-09 15:05:14 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2017-11-09 14:05:14 +0000
commite4373d41d67060e14bab0c984fb9f7cbc4c93f1b (patch)
treefb9d5143e4e5fd9e929fbb4c13e3bd4b71aaaa40 /gcc/profile-count.h
parenta3a6d41f4610c67b9905b3796e441397cc240178 (diff)
downloadgcc-e4373d41d67060e14bab0c984fb9f7cbc4c93f1b.zip
gcc-e4373d41d67060e14bab0c984fb9f7cbc4c93f1b.tar.gz
gcc-e4373d41d67060e14bab0c984fb9f7cbc4c93f1b.tar.bz2
re PR ipa/82879 (ICE in max, at profile-count.h:889)
PR ipa/82879 * ipa-inline-transform.c (update_noncloned_frequencies): Use profile_count::adjust_for_ipa_scaling. * tree-inline.c (copy_bb, copy_cfg_body): Likewise. * profile-count.c (profile_count::adjust_for_ipa_scaling): New member function. * profile-count.h (profile_count::adjust_for_ipa_scaling): Declare. From-SVN: r254582
Diffstat (limited to 'gcc/profile-count.h')
-rw-r--r--gcc/profile-count.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/profile-count.h b/gcc/profile-count.h
index f16bbcb..aa42b4e 100644
--- a/gcc/profile-count.h
+++ b/gcc/profile-count.h
@@ -1044,6 +1044,11 @@ public:
/* Return true if THIS is known to differ significantly from OTHER. */
bool differs_from_p (profile_count other) const;
+ /* We want to scale profile across function boundary from NUM to DEN.
+ Take care of the side case when NUM and DEN are zeros of incompatible
+ kinds. */
+ static void adjust_for_ipa_scaling (profile_count *num, profile_count *den);
+
/* LTO streaming support. */
static profile_count stream_in (struct lto_input_block *);
void stream_out (struct output_block *);