aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.cc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2023-08-03 22:49:22 +0200
committerJan Hubicka <jh@suse.cz>2023-08-03 22:49:22 +0200
commit4a0633d4d499cf971fd4400e5429d5053dc5597d (patch)
treec0c3a7877ea476509a474922de482f3052ed6416 /gcc/tree-cfg.cc
parentd6ac3aae2a32869d9d37f3bc7783d9bbad27d72b (diff)
downloadgcc-4a0633d4d499cf971fd4400e5429d5053dc5597d.zip
gcc-4a0633d4d499cf971fd4400e5429d5053dc5597d.tar.gz
gcc-4a0633d4d499cf971fd4400e5429d5053dc5597d.tar.bz2
Print entry count in print_loop_info
gcc/ChangeLog: * tree-cfg.cc (print_loop_info): Print entry count.
Diffstat (limited to 'gcc/tree-cfg.cc')
-rw-r--r--gcc/tree-cfg.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-cfg.cc b/gcc/tree-cfg.cc
index c158454..ab1f806 100644
--- a/gcc/tree-cfg.cc
+++ b/gcc/tree-cfg.cc
@@ -8562,9 +8562,10 @@ print_loop_info (FILE *file, const class loop *loop, const char *prefix)
sreal iterations;
if (loop->num && expected_loop_iterations_by_profile (loop, &iterations, &reliable))
{
- fprintf (file, "\n%siterations by profile: %f (%s%s)", prefix,
+ fprintf (file, "\n%siterations by profile: %f (%s%s) entry count:", prefix,
iterations.to_double (), reliable ? "reliable" : "unreliable",
maybe_flat_loop_profile (loop) ? ", maybe flat" : "");
+ loop_count_in (loop).dump (dump_file, cfun);
}
}