From 1ede94c55982638a877e0ecad794cbe7d1a54a20 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 17 Feb 2015 22:57:53 +0100 Subject: ipa-visibility.c (function_and_variable_visibility): Only check locality if node is not already local. * ipa-visibility.c (function_and_variable_visibility): Only check locality if node is not already local. * ipa-inline.c (want_inline_function_to_all_callers_p): Use call_for_symbol_and_aliases instead of call_for_symbol_thunks_and_aliases. (ipa_inline): Likewise. * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): first walk aliases. * ipa.c (symbol_table::remove_unreachable_nodes): Use call_for_symbol_and_aliases. * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol. (ipa_propagate_frequency_1): Use it; use opt_for_fn (ipa_propagate_frequency): Update. (ipa_profile): Add opt_for_fn gueards. From-SVN: r220775 --- gcc/ipa-inline.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gcc/ipa-inline.c') diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 287a6dd..025f7fc 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -975,14 +975,14 @@ want_inline_function_to_all_callers_p (struct cgraph_node *node, bool cold) if (node->global.inlined_to) return false; /* Does it have callers? */ - if (!node->call_for_symbol_thunks_and_aliases (has_caller_p, NULL, true)) + if (!node->call_for_symbol_and_aliases (has_caller_p, NULL, true)) return false; /* Inlining into all callers would increase size? */ if (estimate_growth (node) > 0) return false; /* All inlines must be possible. */ - if (node->call_for_symbol_thunks_and_aliases (check_callers, &has_hot_call, - true)) + if (node->call_for_symbol_and_aliases (check_callers, &has_hot_call, + true)) return false; if (!cold && !has_hot_call) return false; @@ -2359,9 +2359,9 @@ ipa_inline (void) if (want_inline_function_to_all_callers_p (node, cold)) { int num_calls = 0; - node->call_for_symbol_thunks_and_aliases (sum_callers, &num_calls, - true); - while (node->call_for_symbol_thunks_and_aliases + node->call_for_symbol_and_aliases (sum_callers, &num_calls, + true); + while (node->call_for_symbol_and_aliases (inline_to_all_callers, &num_calls, true)) ; remove_functions = true; -- cgit v1.1