Commit b9fb922a by Martin Liska Committed by Martin Liska

Simplify dump_printf in value-prof.c

2019-08-13  Martin Liska  <mliska@suse.cz>

	* value-prof.c (gimple_ic_transform): Add new line.
	Print details with MSG_NOTE.
2019-08-13  Martin Liska  <mliska@suse.cz>

	* gcc.dg/tree-prof/ic-misattribution-1.c: Use -fdump-ipa-profile-node.

From-SVN: r274330
parent e75c29e7
2019-08-13 Martin Liska <mliska@suse.cz> 2019-08-13 Martin Liska <mliska@suse.cz>
* value-prof.c (gimple_ic_transform): Add new line.
Print details with MSG_NOTE.
2019-08-13 Martin Liska <mliska@suse.cz>
* doc/invoke.texi: Document automatic detection of jobserver. * doc/invoke.texi: Document automatic detection of jobserver.
* lto-wrapper.c (run_gcc): Detect jobserver always. * lto-wrapper.c (run_gcc): Detect jobserver always.
......
2019-08-13 Martin Liska <mliska@suse.cz>
* gcc.dg/tree-prof/ic-misattribution-1.c: Use -fdump-ipa-profile-node.
2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org> 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/91424 PR fortran/91424
......
/* { dg-options "-O2 -fdump-ipa-profile-optimized" } */ /* { dg-options "-O2 -fdump-ipa-profile-note" } */
/* { dg-additional-sources "ic-misattribution-1a.c" } */ /* { dg-additional-sources "ic-misattribution-1a.c" } */
extern void other_caller (void); extern void other_caller (void);
......
...@@ -1450,7 +1450,7 @@ gimple_ic_transform (gimple_stmt_iterator *gsi) ...@@ -1450,7 +1450,7 @@ gimple_ic_transform (gimple_stmt_iterator *gsi)
if (dump_enabled_p ()) if (dump_enabled_p ())
dump_printf_loc (MSG_MISSED_OPTIMIZATION, stmt, dump_printf_loc (MSG_MISSED_OPTIMIZATION, stmt,
"Indirect call -> direct call from other " "Indirect call -> direct call from other "
"module %T=> %i (will resolve only with LTO)", "module %T=> %i (will resolve only with LTO)\n",
gimple_call_fn (stmt), (int)val); gimple_call_fn (stmt), (int)val);
} }
return false; return false;
...@@ -1471,10 +1471,9 @@ gimple_ic_transform (gimple_stmt_iterator *gsi) ...@@ -1471,10 +1471,9 @@ gimple_ic_transform (gimple_stmt_iterator *gsi)
{ {
dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, stmt, dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, stmt,
"Indirect call -> direct call " "Indirect call -> direct call "
"%T => %T transformation on insn postponed " "%T => %T transformation on insn postponed\n",
"to ipa-profile: %G", gimple_call_fn (stmt), gimple_call_fn (stmt), direct_call->decl);
direct_call->decl, stmt); dump_printf_loc (MSG_NOTE, stmt,
dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, stmt,
"hist->count %" PRId64 "hist->count %" PRId64
" hist->all %" PRId64"\n", count, all); " hist->all %" PRId64"\n", count, all);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment