IPA: enhance dump output

2017-02-03  Martin Liska  <mliska@suse.cz>

	* cgraph.c (cgraph_node::dump): Dump function version info.
	* symtab.c (symtab_node::dump_base): Add missing new line.

From-SVN: r245153
This commit is contained in:
Martin Liska 2017-02-03 16:14:40 +01:00 committed by Martin Liska
parent baa2d1cd76
commit 9e57787b84
3 changed files with 28 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2017-02-03 Martin Liska <mliska@suse.cz>
* cgraph.c (cgraph_node::dump): Dump function version info.
* symtab.c (symtab_node::dump_base): Add missing new line.
2017-02-02 Jan Hubicka <hubicka@ucw.cz>
* tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.

View file

@ -2066,6 +2066,28 @@ cgraph_node::dump (FILE *f)
fprintf (f, " Profile id: %i\n",
profile_id);
fprintf (f, " First run: %i\n", tp_first_run);
cgraph_function_version_info *vi = function_version ();
if (vi != NULL)
{
fprintf (f, " Version info: ");
if (vi->prev != NULL)
{
fprintf (f, "prev: ");
fprintf (f, "%s/%i ", vi->prev->this_node->asm_name (),
vi->prev->this_node->order);
}
if (vi->next != NULL)
{
fprintf (f, "next: ");
fprintf (f, "%s/%i ", vi->next->this_node->asm_name (),
vi->next->this_node->order);
}
if (vi->dispatcher_resolver != NULL_TREE)
fprintf (f, "dispatcher: %s",
lang_hooks.decl_printable_name (vi->dispatcher_resolver, 2));
fprintf (f, "\n");
}
fprintf (f, " Function flags:");
if (count)
fprintf (f, " executed %" PRId64"x",

View file

@ -890,6 +890,7 @@ symtab_node::dump_base (FILE *f)
{
fprintf (f, " Aux:");
dump_addr (f, " @", (void *)aux);
fprintf (f, "\n");
}
fprintf (f, " References: ");