From 12b8633eff944c148bf33857bae02458d313eba8 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 13 Jun 2018 15:38:54 -0400 Subject: [PATCH 26/46] FIXME: profile.c: add dummy remark --- gcc/profile.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gcc/profile.c b/gcc/profile.c index 0cd0270..d80dab4 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -64,6 +64,7 @@ along with GCC; see the file COPYING3. If not see #include "tree-cfg.h" #include "dumpfile.h" #include "cfgloop.h" +#include "optinfo.h" #include "profile.h" @@ -1352,6 +1353,18 @@ branch_prob (void) } compute_function_frequency (); } + + /* FIXME: a dummy optimization remark, to capture the frequencies. */ + FOR_EACH_BB_FN (bb, cfun) + { + gimple_stmt_iterator gsi; + + for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) + { + gimple *stmt = gsi_stmt (gsi); + dump_printf_loc (MSG_NOTE, stmt, "test remark\n"); + } + } } /* Union find algorithm implementation for the basic blocks using -- 1.8.5.3