ipa-visibility.c (function_and_variable_visibility): Only check locality if node...
authorJan Hubicka <hubicka@ucw.cz>
Tue, 17 Feb 2015 21:57:53 +0000 (22:57 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 17 Feb 2015 21:57:53 +0000 (21:57 +0000)
commit1ede94c55982638a877e0ecad794cbe7d1a54a20
treee091500afee952a95172cae6c16c788f2e6b15d7
parentf05911fb07ef21bd158da44d8618b7be84f11b21
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/ChangeLog
gcc/cgraph.c
gcc/ipa-inline.c
gcc/ipa-profile.c
gcc/ipa.c