Commit 1379ce8f by Jan Hubicka Committed by Jan Hubicka

ipa-visibility.c (function_and_variable_visibility): Only check locality if node…

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 guards.

From-SVN: r220771
parent a2818955
2015-02-17 Jan Hubicka <hubicka@ucw.cz>
* 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 guards.
2015-02-17 Thomas Schwinge <thomas@codesourcery.com> 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
* config/nvptx/mkoffload.c (parse_file): Fix logic error in * config/nvptx/mkoffload.c (parse_file): Fix logic error in
......
...@@ -595,6 +595,7 @@ function_and_variable_visibility (bool whole_program) ...@@ -595,6 +595,7 @@ function_and_variable_visibility (bool whole_program)
} }
FOR_EACH_DEFINED_FUNCTION (node) FOR_EACH_DEFINED_FUNCTION (node)
{ {
if (!node->local.local)
node->local.local |= node->local_p (); node->local.local |= node->local_p ();
/* If we know that function can not be overwritten by a different semantics /* If we know that function can not be overwritten by a different semantics
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment