aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-profile.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-01-23 13:26:37 +0100
committerMartin Liska <marxin@gcc.gnu.org>2018-01-23 12:26:37 +0000
commita53d4f2004efef705435ea3e6bacfcca002d6c64 (patch)
treec35b7875d7dbd931c215c10521381ed1d860d6a8 /gcc/tree-profile.c
parent175946876361bd3ac360361e67d12761974a479e (diff)
downloadgcc-a53d4f2004efef705435ea3e6bacfcca002d6c64.zip
gcc-a53d4f2004efef705435ea3e6bacfcca002d6c64.tar.gz
gcc-a53d4f2004efef705435ea3e6bacfcca002d6c64.tar.bz2
Clean-up IPA profile dump output.
2018-01-23 Martin Liska <mliska@suse.cz> * tree-profile.c (tree_profiling): Print function header to aware reader which function we are working on. * value-prof.c (gimple_find_values_to_profile): Do not print not interesting value histograms. From-SVN: r256983
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r--gcc/tree-profile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c
index 9d91906..f96bd4b 100644
--- a/gcc/tree-profile.c
+++ b/gcc/tree-profile.c
@@ -52,6 +52,7 @@ along with GCC; see the file COPYING3. If not see
#include "params.h"
#include "stringpool.h"
#include "attribs.h"
+#include "tree-pretty-print.h"
static GTY(()) tree gcov_type_node;
static GTY(()) tree tree_interval_profiler_fn;
@@ -671,6 +672,9 @@ tree_profiling (void)
push_cfun (DECL_STRUCT_FUNCTION (node->decl));
+ if (dump_file)
+ dump_function_header (dump_file, cfun->decl, dump_flags);
+
/* Local pure-const may imply need to fixup the cfg. */
if (execute_fixup_cfg () & TODO_cleanup_cfg)
cleanup_tree_cfg ();