diff options
author | Martin Liska <mliska@suse.cz> | 2019-08-13 09:31:25 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-08-13 07:31:25 +0000 |
commit | b9fb922ad7439b38119aaca7a38b839d62fcaf23 (patch) | |
tree | d5d891da023b4cac8c7e91d639ec77def0e7a3ba /gcc/value-prof.c | |
parent | e75c29e7c8be4ae62f2ab68eb1e18e22dca06a88 (diff) | |
download | gcc-b9fb922ad7439b38119aaca7a38b839d62fcaf23.zip gcc-b9fb922ad7439b38119aaca7a38b839d62fcaf23.tar.gz gcc-b9fb922ad7439b38119aaca7a38b839d62fcaf23.tar.bz2 |
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
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r-- | gcc/value-prof.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 9d9785b..00ede8d 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -1450,7 +1450,7 @@ gimple_ic_transform (gimple_stmt_iterator *gsi) if (dump_enabled_p ()) dump_printf_loc (MSG_MISSED_OPTIMIZATION, stmt, "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); } return false; @@ -1471,10 +1471,9 @@ gimple_ic_transform (gimple_stmt_iterator *gsi) { dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, stmt, "Indirect call -> direct call " - "%T => %T transformation on insn postponed " - "to ipa-profile: %G", gimple_call_fn (stmt), - direct_call->decl, stmt); - dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, stmt, + "%T => %T transformation on insn postponed\n", + gimple_call_fn (stmt), direct_call->decl); + dump_printf_loc (MSG_NOTE, stmt, "hist->count %" PRId64 " hist->all %" PRId64"\n", count, all); } |