aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-08-13 09:31:25 +0200
committerMartin Liska <marxin@gcc.gnu.org>2019-08-13 07:31:25 +0000
commitb9fb922ad7439b38119aaca7a38b839d62fcaf23 (patch)
treed5d891da023b4cac8c7e91d639ec77def0e7a3ba
parente75c29e7c8be4ae62f2ab68eb1e18e22dca06a88 (diff)
downloadgcc-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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/tree-prof/ic-misattribution-1.c2
-rw-r--r--gcc/value-prof.c9
4 files changed, 14 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 684c30e..cc06158 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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.
* lto-wrapper.c (run_gcc): Detect jobserver always.
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 18dac06..8397721 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+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>
PR fortran/91424
diff --git a/gcc/testsuite/gcc.dg/tree-prof/ic-misattribution-1.c b/gcc/testsuite/gcc.dg/tree-prof/ic-misattribution-1.c
index 126236e..0c69045 100644
--- a/gcc/testsuite/gcc.dg/tree-prof/ic-misattribution-1.c
+++ b/gcc/testsuite/gcc.dg/tree-prof/ic-misattribution-1.c
@@ -1,4 +1,4 @@
-/* { dg-options "-O2 -fdump-ipa-profile-optimized" } */
+/* { dg-options "-O2 -fdump-ipa-profile-note" } */
/* { dg-additional-sources "ic-misattribution-1a.c" } */
extern void other_caller (void);
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);
}