From 0bceb671062a463aadcf0059e19308845d713838 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 23 May 2017 12:59:35 +0200 Subject: ipa-inline-analysis.c (cgraph_2edge_hook_list, [...]): Remove. * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list, inline_edge_removal_hook, inline_edge_duplication_hook): Remove. (inline_edge_summary_vec): Turn into ... (ipa_call_summaries): ... this one. (redirect_to_unreachable, edge_set_predicate, evaluate_properties_for_edge, inline_summary_alloc, reset_ipa_call_summary, reset_inline_summary, inline_summary_t::duplicate): Update. (inline_edge_duplication_hook): Turn to ... (ipa_call_summary_t::duplicate): ... this one. (inline_edge_removal_hook): Turn to ... (ipa_call_summary_t::remove): ... this one. (dump_inline_edge_summary): Turn to ... (dump_ipa_call_summary): ... this one. (estimate_function_body_sizes): Update. (inline_update_callee_summaries): Update. (remap_edge_change_prob): Update. (remap_edge_summaries): Update. (inline_merge_summary): Update. (do_estimate_edge_time): Update. (inline_generate_summary): Update. (inline_read_section): Update. (inline_read_summary): Update. (inline_free_summary): Update. * ipa-inline.c (can_inline_edge_p): Update. (compute_inlined_call_time): Update. (want_inline_small_function_p): Update. (edge_badness): Update. (early_inliner): Update. * ipa-inline.h (inline_edge_summary): Turn to ... (ipa_call_summary): ... this one. (ipa_call_summary_t): New class. (inline_edge_summary_t, inline_edge_summary_vec): Remove. (ipa_call_summaries): New. (inline_edge_summary): Remove. (estimate_edge_growth): Update. * ipa-profile.c (ipa_propagate_frequency_1): Update. * ipa-prop.c (ipa_make_edge_direct_to_target): Update. * ipa-split.c (execute_split_functions): Update. * ipa.c (symbol_table::remove_unreachable_nodes): Update. From-SVN: r248365 --- gcc/ipa-inline-analysis.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'gcc/ipa-inline-analysis.c') diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index 9cdf103..f562ca5 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -123,9 +123,9 @@ simple_edge_hints (struct cgraph_edge *edge) struct cgraph_node *to = (edge->caller->global.inlined_to ? edge->caller->global.inlined_to : edge->caller); struct cgraph_node *callee = edge->callee->ultimate_alias_target (); - if (inline_summaries->get (to)->scc_no - && inline_summaries->get (to)->scc_no - == inline_summaries->get (callee)->scc_no + if (ipa_fn_summaries->get (to)->scc_no + && ipa_fn_summaries->get (to)->scc_no + == ipa_fn_summaries->get (callee)->scc_no && !edge->recursive_p ()) hints |= INLINE_HINT_same_scc; @@ -149,7 +149,7 @@ do_estimate_edge_time (struct cgraph_edge *edge) { sreal time, nonspec_time; int size; - inline_hints hints; + ipa_hints hints; struct cgraph_node *callee; clause_t clause, nonspec_clause; vec known_vals; @@ -187,7 +187,7 @@ do_estimate_edge_time (struct cgraph_edge *edge) /* When caching, update the cache entry. */ if (edge_growth_cache.exists ()) { - inline_summaries->get (edge->callee)->min_size = min_size; + ipa_fn_summaries->get (edge->callee)->min_size = min_size; if ((int) edge_growth_cache.length () <= edge->uid) edge_growth_cache.safe_grow_cleared (symtab->edges_max_uid); edge_growth_cache[edge->uid].time = time; @@ -245,10 +245,10 @@ do_estimate_edge_size (struct cgraph_edge *edge) /* Estimate the growth of the caller when inlining EDGE. Only to be called via estimate_edge_size. */ -inline_hints +ipa_hints do_estimate_edge_hints (struct cgraph_edge *edge) { - inline_hints hints; + ipa_hints hints; struct cgraph_node *callee; clause_t clause, nonspec_clause; vec known_vals; @@ -293,11 +293,11 @@ estimate_size_after_inlining (struct cgraph_node *node, struct ipa_call_summary *es = ipa_call_summaries->get (edge); if (!es->predicate || *es->predicate != false) { - int size = inline_summaries->get (node)->size + estimate_edge_growth (edge); + int size = ipa_fn_summaries->get (node)->size + estimate_edge_growth (edge); gcc_assert (size >= 0); return size; } - return inline_summaries->get (node)->size; + return ipa_fn_summaries->get (node)->size; } @@ -345,7 +345,7 @@ int estimate_growth (struct cgraph_node *node) { struct growth_data d = { node, false, false, 0 }; - struct inline_summary *info = inline_summaries->get (node); + struct ipa_fn_summary *info = ipa_fn_summaries->get (node); node->call_for_symbol_and_aliases (do_estimate_growth_1, &d, true); @@ -420,7 +420,7 @@ growth_likely_positive (struct cgraph_node *node, || node->address_taken) return true; - max_callers = inline_summaries->get (node)->size * 4 / edge_growth + 2; + max_callers = ipa_fn_summaries->get (node)->size * 4 / edge_growth + 2; for (e = node->callers; e; e = e->next_caller) { -- cgit v1.1