Simplify dump_printf in value-prof.c
authorMartin Liska <mliska@suse.cz>
Tue, 13 Aug 2019 07:31:25 +0000 (09:31 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 13 Aug 2019 07:31:25 +0000 (07:31 +0000)
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

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/ic-misattribution-1.c
gcc/value-prof.c

index 684c30e56cd7e0b39f3b679f0d9d8ba5678c1e1c..cc06158cf4ea4e8ca93fa4e46c8157a53f3ed027 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 18dac06e77eb85cc0316c2e8c07a7502c947dcee..839772170dec16fec4fca5d8a1f5e395f138352e 100644 (file)
@@ -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
index 126236eba8e23a90459e6f3af2abf2852f50ee62..0c69045591b3d97a3539e0a46e6d34f5f90b79e7 100644 (file)
@@ -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);
index 9d9785b179d6ea3b86e6ec82606d88e6da1f2a72..00ede8d985fb4ed83cb714220127ad3ba009e70e 100644 (file)
@@ -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);
     }