diff options
author | Martin Liska <mliska@suse.cz> | 2018-01-23 13:26:37 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-01-23 12:26:37 +0000 |
commit | a53d4f2004efef705435ea3e6bacfcca002d6c64 (patch) | |
tree | c35b7875d7dbd931c215c10521381ed1d860d6a8 /gcc/value-prof.c | |
parent | 175946876361bd3ac360361e67d12761974a479e (diff) | |
download | gcc-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/value-prof.c')
-rw-r--r-- | gcc/value-prof.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c index b503320f..16cdbd6 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -2053,7 +2053,7 @@ gimple_find_values_to_profile (histogram_values *values) default: gcc_unreachable (); } - if (dump_file) + if (dump_file && hist->hvalue.stmt != NULL) { fprintf (dump_file, "Stmt "); print_gimple_stmt (dump_file, hist->hvalue.stmt, 0, TDF_SLIM); |