From edf39462cca095ee8a850b12407b990f54d285e0 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 17 May 2018 14:03:28 -0400 Subject: [PATCH 70/83] Add optinfo to tree-inline.c --- gcc/tree-inline.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 5a0a252..4241eb3 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -61,6 +61,7 @@ along with GCC; see the file COPYING3. If not see #include "stringpool.h" #include "attribs.h" #include "sreal.h" +#include "optinfo.h" /* I'm not real happy about this, but we need to handle gimple and non-gimple trees. */ @@ -4719,6 +4720,13 @@ expand_call_inline (basic_block bb, gimple *stmt, copy_body_data *id) id->src_node->dump (dump_file); id->dst_node->dump (dump_file); } + /* FIXME. */ + if (optinfo_enabled_p ()) + OPTINFO_SUCCESS(call_stmt) + << optinfo_printf ("Inlining %s to %s with frequency %4.2f", + id->src_node->dump_name (), + id->dst_node->dump_name (), + cg_edge->sreal_frequency ().to_double ()); /* This is it. Duplicate the callee body. Assume callee is pre-gimplified. Note that we must not alter the caller -- 1.8.5.3