diff options
author | Jan Hubicka <jh@suse.cz> | 2008-05-07 11:44:30 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-05-07 09:44:30 +0000 |
commit | 9562228040b6fc80870b2d7bd60d67af7870390e (patch) | |
tree | 27271fad1665bd714366737d597a190b0a86136a /gcc/cgraphunit.c | |
parent | 96fcacb7d3047adc23f9f5688927053700476a88 (diff) | |
download | gcc-9562228040b6fc80870b2d7bd60d67af7870390e.zip gcc-9562228040b6fc80870b2d7bd60d67af7870390e.tar.gz gcc-9562228040b6fc80870b2d7bd60d67af7870390e.tar.bz2 |
cgraph.c (dump_cgraph_node): Update.
* cgraph.c (dump_cgraph_node): Update.
* cgraph.h (cgraph_local_info): Break out inline summary.
* cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
hook.
* ipa-inline (inline_summary): New accestor function.
(cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
cgraph_decide_inlining, compute_inline_parameters): Update.
* ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
From-SVN: r135037
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 7b01248..0806050 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -460,16 +460,7 @@ cgraph_process_new_functions (void) cgraph_analyze_function (node); push_cfun (DECL_STRUCT_FUNCTION (fndecl)); current_function_decl = fndecl; - node->local.inlinable = tree_inlinable_function_p (fndecl); - node->local.self_insns = estimate_num_insns (fndecl, - &eni_inlining_weights); - node->local.disregard_inline_limits - |= DECL_DISREGARD_INLINE_LIMITS (fndecl); - /* Inlining characteristics are maintained by the - cgraph_mark_inline. */ - node->global.insns = node->local.self_insns; - if (flag_really_no_inline && !node->local.disregard_inline_limits) - node->local.inlinable = 0; + pass_ipa_inline.function_generate_summary (node); if ((cgraph_state == CGRAPH_STATE_IPA_SSA && !gimple_in_ssa_p (DECL_STRUCT_FUNCTION (fndecl))) /* When not optimizing, be sure we run early local passes anyway |