aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-fnsummary.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-11-14 20:30:59 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2017-11-14 19:30:59 +0000
commit30632c7a9742ed959f85b33c6f57f9cc62c76630 (patch)
tree7bb5c9e5691559f32e7294b082d86fe3c868841f /gcc/ipa-fnsummary.c
parentf021f1d3a65d46eb0d2d206d52343de79c124d57 (diff)
downloadgcc-30632c7a9742ed959f85b33c6f57f9cc62c76630.zip
gcc-30632c7a9742ed959f85b33c6f57f9cc62c76630.tar.gz
gcc-30632c7a9742ed959f85b33c6f57f9cc62c76630.tar.bz2
ipa-inline.c (edge_badness): Dump sreal frequency.
* ipa-inline.c (edge_badness): Dump sreal frequency. (compute_inlined_call_time): Match natural implementaiton ... * ipa-fnsummary.c (estimate_edge_size_and_time): ... here; remove forgotten division by CGRAPH_FREQ_BASE. From-SVN: r254738
Diffstat (limited to 'gcc/ipa-fnsummary.c')
-rw-r--r--gcc/ipa-fnsummary.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c
index ddc16bd..8e26e7e 100644
--- a/gcc/ipa-fnsummary.c
+++ b/gcc/ipa-fnsummary.c
@@ -2581,8 +2581,7 @@ estimate_edge_size_and_time (struct cgraph_edge *e, int *size, int *min_size,
if (prob == REG_BR_PROB_BASE)
*time += ((sreal)call_time) * e->sreal_frequency ();
else
- *time += ((sreal)call_time * prob) * e->sreal_frequency ()
- / CGRAPH_FREQ_BASE;
+ *time += ((sreal)call_time * prob) * e->sreal_frequency ();
}