diff options
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index aef6a14845c..c9aadc126cc 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -615,6 +615,8 @@ cgraph_analyze_function (struct cgraph_node *node) cgraph_create_edges (node, DECL_SAVED_TREE (decl)); node->local.inlinable = tree_inlinable_function_p (decl); + if (!DECL_ESTIMATED_INSNS (decl)) + DECL_ESTIMATED_INSNS (decl) = estimate_num_insns (DECL_SAVED_TREE (decl)); node->local.self_insns = estimate_num_insns (DECL_SAVED_TREE (decl)); if (node->local.inlinable) node->local.disregard_inline_limits |