aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r--gcc/tree-profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c
index a907510..6c2d1bd 100644
--- a/gcc/tree-profile.c
+++ b/gcc/tree-profile.c
@@ -345,7 +345,7 @@ tree_gen_ic_func_profiler (void)
gimple stmt1, stmt2;
tree tree_uid, cur_func;
- if (!c_node->needed)
+ if (cgraph_only_called_directly_p (c_node))
return;
tree_init_edge_profiler ();