aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-profile.c
diff options
context:
space:
mode:
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 05cad3f..f149d01 100644
--- a/gcc/ipa-profile.c
+++ b/gcc/ipa-profile.c
@@ -330,7 +330,7 @@ ipa_propagate_frequency_1 (struct cgraph_node *node, void *data)
it is executed by the train run. Transfer the function only if all
callers are unlikely executed. */
if (profile_info
- && opt_for_fn (d->function_symbol->decl, flag_branch_probabilities)
+ && edge->callee->count.initialized_p ()
/* Thunks are not profiled. This is more or less implementation
bug. */
&& !d->function_symbol->thunk.thunk_p