Call ultimate_alias_target for node being inlined (PR ipa/87491).
authorMartin Liska <mliska@suse.cz>
Thu, 4 Oct 2018 08:06:52 +0000 (10:06 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 4 Oct 2018 08:06:52 +0000 (08:06 +0000)
2018-10-04  Martin Liska  <mliska@suse.cz>

PR ipa/87491
* ipa-inline.c (inline_to_all_callers_1):
Call ultimate_alias_target for node being inlined.

From-SVN: r264835

gcc/ChangeLog
gcc/ipa-inline.c

index d8fafe03bcebba3c750469060750095f5a77f1a3..fbf6862f5221322566c75b796df35187e72a634d 100644 (file)
@@ -1,3 +1,9 @@
+2018-10-04  Martin Liska  <mliska@suse.cz>
+
+       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  <thomas.preudhomme@linaro.org>
 
        * lra-constraints.c (process_address_1): Bail out for all
index 025788522fbe602e1d190a30ccea006b9ab053c5..4f8ed1520f101611c07d30a02acd9c074a74eebe 100644 (file)
@@ -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 (),