From: Martin Liska Date: Thu, 4 Oct 2018 08:06:52 +0000 (+0200) Subject: Call ultimate_alias_target for node being inlined (PR ipa/87491). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e626cd9ff226c35f98805e85a9a0d625eccf52b;p=gcc.git Call ultimate_alias_target for node being inlined (PR ipa/87491). 2018-10-04 Martin Liska PR ipa/87491 * ipa-inline.c (inline_to_all_callers_1): Call ultimate_alias_target for node being inlined. From-SVN: r264835 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d8fafe03bce..fbf6862f522 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-10-04 Martin Liska + + PR ipa/87491 + * ipa-inline.c (inline_to_all_callers_1): + Call ultimate_alias_target for node being inlined. + 2018-10-04 Thomas Preud'homme * lra-constraints.c (process_address_1): Bail out for all diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 025788522fb..4f8ed1520f1 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -2219,10 +2219,11 @@ inline_to_all_callers_1 (struct cgraph_node *node, void *data, if (dump_file) { + cgraph_node *ultimate = node->ultimate_alias_target (); fprintf (dump_file, "\nInlining %s size %i.\n", - node->name (), - ipa_fn_summaries->get (node)->size); + ultimate->name (), + ipa_fn_summaries->get (ultimate)->size); fprintf (dump_file, " Called once from %s %i insns.\n", node->callers->caller->name (),