ipa-comdats.c: Remove optimize check from gate.
authorJan Hubicka <hubicka@ucw.cz>
Fri, 7 Jul 2017 13:28:35 +0000 (15:28 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 7 Jul 2017 13:28:35 +0000 (13:28 +0000)
commit29f1e2b173f1701b66410bc3624a989e98e23724
treeb2b3db83fc40d137f7bde2edb4558d282d409c6a
parent8b42ccf6ddfbb350776d0c1b22bddbe9ff634b48
ipa-comdats.c: Remove optimize check from gate.

* ipa-comdats.c: Remove optimize check from gate.
* ipa-fnsummary.c (ipa_fn_summary_generate): do not generate summary
for functions not optimized.
(ipa_fn_summary_read): Skip optimize check.
(ipa_fn_summary_write): Likewise.
* ipa-inline-analysis.c (do_estimate_growth_1): Check that caller
is optimized.
* ipa-inline.c (can_inline_edge_p): Not optimized functions are
uninlinable.
(can_inline_edge_p): Check flag_pcc_struct_return for match.
(check_callers): Give up on caller which is not optimized.
(inline_small_functions): Likewise.
(ipa_inline): Do not give up when not optimizing.
* ipa-visbility.c (function_and_variable_visibility): Do not optimize
away unoptimizes cdtors.
(whole_program_function_and_variable_visibility): Do
ipa_discover_readonly_nonaddressable_vars in LTO mode.
* ipa.c (process_references): Do not check optimize.
(symbol_table::remove_unreachable_nodes): Update optimize check.
(set_writeonly_bit): Update optimize check.
(pass_ipa_cdtor_merge::gate): Do not check optimize.
(pass_ipa_single_use::gate): Remove.

From-SVN: r250048
gcc/ChangeLog
gcc/ipa-comdats.c
gcc/ipa-fnsummary.c
gcc/ipa-inline-analysis.c
gcc/ipa-inline.c
gcc/ipa-visibility.c
gcc/ipa.c