aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-profile.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-11-23 16:59:07 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2017-11-23 15:59:07 +0000
commit7349698ee4147cf36862081e21736d4c2b96b9d9 (patch)
tree535b11fd8653e7e3108910ce67f9a0965e43310a /gcc/ipa-profile.c
parent0009a6c3c7d7c9c31d253558b602c35d3ad51d1b (diff)
downloadgcc-7349698ee4147cf36862081e21736d4c2b96b9d9.zip
gcc-7349698ee4147cf36862081e21736d4c2b96b9d9.tar.gz
gcc-7349698ee4147cf36862081e21736d4c2b96b9d9.tar.bz2
ipa-profile.c (ipa_propagate_frequency_1): Use count instead of frequency.
* ipa-profile.c (ipa_propagate_frequency_1): Use count instead of frequency. * cgraph.c (cgraph_edge::dump_edge_flags): Dump sreal frequencies. (cgraph_edge::maybe_hot_p): Use sreal frequencies. From-SVN: r255104
Diffstat (limited to 'gcc/ipa-profile.c')
-rw-r--r--gcc/ipa-profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c
index cdcd050..7c7c0d0 100644
--- a/gcc/ipa-profile.c
+++ b/gcc/ipa-profile.c
@@ -340,7 +340,7 @@ ipa_propagate_frequency_1 (struct cgraph_node *node, void *data)
&& edge->caller->global.inlined_to->frequency
!= NODE_FREQUENCY_UNLIKELY_EXECUTED)))
d->maybe_unlikely_executed = false;
- if (!edge->frequency ())
+ if (edge->count.initialized_p () && !edge->count.nonzero_p ())
continue;
switch (edge->caller->frequency)
{