Use summaries->get where possible. Small refactoring of multiple calls.
authorMartin Liska <mliska@suse.cz>
Fri, 8 Jun 2018 12:14:02 +0000 (14:14 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 8 Jun 2018 12:14:02 +0000 (12:14 +0000)
commitcf9b0b5fce429ec34dbda16f5e284420ac6d0fae
treec0ac07d09e7711dbc59e447502abe2cc5e758bb3
parent0148358a02a230ef250718b13180527701edf3ca
Use summaries->get where possible. Small refactoring of multiple calls.

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

* ipa-fnsummary.c (dump_ipa_call_summary): Use ::get method.
(analyze_function_body): Extract multiple calls of get_create.
* ipa-inline-analysis.c (simple_edge_hints): Likewise.
* ipa-inline.c (recursive_inlining): Use ::get method.
* ipa-inline.h (estimate_edge_growth): Likewise.

From-SVN: r261311
gcc/ChangeLog
gcc/ipa-fnsummary.c
gcc/ipa-inline-analysis.c
gcc/ipa-inline.c
gcc/ipa-inline.h