Print entry count in print_loop_info

gcc/ChangeLog:

	* tree-cfg.cc (print_loop_info): Print entry count.
This commit is contained in:
Jan Hubicka 2023-08-03 22:49:22 +02:00
parent d6ac3aae2a
commit 4a0633d4d4

View file

@ -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);
}
}