From b9fb922ad7439b38119aaca7a38b839d62fcaf23 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 13 Aug 2019 09:31:25 +0200 Subject: Simplify dump_printf in value-prof.c 2019-08-13 Martin Liska * value-prof.c (gimple_ic_transform): Add new line. Print details with MSG_NOTE. 2019-08-13 Martin Liska * gcc.dg/tree-prof/ic-misattribution-1.c: Use -fdump-ipa-profile-node. From-SVN: r274330 --- gcc/value-prof.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'gcc/value-prof.c') 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); } -- cgit v1.1