From 4a0633d4d499cf971fd4400e5429d5053dc5597d Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 3 Aug 2023 22:49:22 +0200 Subject: [PATCH] Print entry count in print_loop_info gcc/ChangeLog: * tree-cfg.cc (print_loop_info): Print entry count. --- gcc/tree-cfg.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/tree-cfg.cc b/gcc/tree-cfg.cc index c158454946c6..ab1f8067c545 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); } } -- 2.47.2