Use symtab_summary in ipa-reference.c.
authorMartin Liska <mliska@suse.cz>
Fri, 8 Jun 2018 12:14:57 +0000 (14:14 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 8 Jun 2018 12:14:57 +0000 (12:14 +0000)
commit6adcb793611207a5b6aeb30c9670ab083f2ed03c
treea0345614b20ee7168fae4e18fe8e85ef7c030e7c
parentcf9b0b5fce429ec34dbda16f5e284420ac6d0fae
Use symtab_summary in ipa-reference.c.

2018-06-08  Martin Liska  <mliska@suse.cz>

* ipa-reference.c (remove_node_data): Remove.
(duplicate_node_data): Likewise.
(class ipa_ref_var_info_summary_t): New class.
(class ipa_ref_opt_summary_t): Likewise.
(get_reference_vars_info): Use ipa_ref_var_info_summaries.
(get_reference_optimization_summary): Use
ipa_ref_opt_sum_summaries.
(set_reference_vars_info): Remove.
(set_reference_optimization_summary): Likewise.
(ipa_init): Create summaries.
(init_function_info): Use function summary.
(ipa_ref_opt_summary_t::duplicate): New function.
(ipa_ref_opt_summary_t::remove): New function.
(get_read_write_all_from_node): Fix GNU coding style.
(propagate): Use function summary.
(write_node_summary_p): Fix GNU coding style.
(stream_out_bitmap): Likewise.
(ipa_reference_read_optimization_summary): Use function summary.
(ipa_reference_c_finalize): Do not release hooks.

From-SVN: r261312
gcc/ChangeLog
gcc/ipa-reference.c