2018-06-08 Martin Liska <mliska@suse.cz>
+ * ipa-inline-analysis.c (simple_edge_hints): Use ::get method.
+ * ipa-inline.h (estimate_edge_growth): Likewise.
+
+2018-06-08 Martin Liska <mliska@suse.cz>
+
* cgraph.c (function_version_hasher::hash): Use
cgraph_node::get_uid ().
(function_version_hasher::equal):
struct cgraph_node *to = (edge->caller->global.inlined_to
? edge->caller->global.inlined_to : edge->caller);
struct cgraph_node *callee = edge->callee->ultimate_alias_target ();
- if (ipa_fn_summaries->get_create (to)->scc_no
- && ipa_fn_summaries->get (to)->scc_no
- == ipa_fn_summaries->get_create (callee)->scc_no
- && !edge->recursive_p ())
+ int to_scc_no = ipa_fn_summaries->get (to)->scc_no;
+ int callee_scc_no = ipa_fn_summaries->get (callee)->scc_no;
+
+ if (to_scc_no && to_scc_no == callee_scc_no && !edge->recursive_p ())
hints |= INLINE_HINT_same_scc;
if (callee->lto_file_data && edge->caller->lto_file_data
static inline int
estimate_edge_growth (struct cgraph_edge *edge)
{
- ipa_call_summary *s = ipa_call_summaries->get_create (edge);
+ ipa_call_summary *s = ipa_call_summaries->get (edge);
gcc_checking_assert (s->call_stmt_size || !edge->callee->analyzed);
return (estimate_edge_size (edge) - s->call_stmt_size);
}