From 41f0e8194de366399afb726a6862843d81f896a3 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 13 Nov 2017 18:23:25 +0100 Subject: cgraph.c (cgraph_edge::sreal_frequency): New function. * cgraph.c (cgraph_edge::sreal_frequency): New function. * cgraph.h (cgraph_edge::sreal_frequency): Declare. * ipa-fnsummary.c (dump_ipa_call_summary): Use sreal_frequency. (estimate_edge_size_and_time): Likewise. (ipa_merge_fn_summary_after_inlining): Likewise. * ipa-inline.c (cgraph_freq_base_rec): Remove. (compute_uninlined_call_time): Use sreal_frequency. (compute_inlined_call_time): Likewise. (ipa_inline): Do not initialize cgraph_freq_base_rec. * profile-count.c: Include sreal.h. (profile_count::to_sreal_scale): New. * profile-count.h: Forward declare sreal. (profile_count::to_sreal_scale): Declare. From-SVN: r254696 --- gcc/profile-count.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/profile-count.h') diff --git a/gcc/profile-count.h b/gcc/profile-count.h index aa42b4e..90d1bc7 100644 --- a/gcc/profile-count.h +++ b/gcc/profile-count.h @@ -601,6 +601,8 @@ public: */ +class sreal; + class GTY(()) profile_count { /* Use 62bit to hold basic block counters. Should be at least @@ -1034,6 +1036,7 @@ public: int to_frequency (struct function *fun) const; int to_cgraph_frequency (profile_count entry_bb_count) const; + sreal to_sreal_scale (profile_count in, bool *known = NULL) const; /* Output THIS to F. */ void dump (FILE *f) const; -- cgit v1.1