]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Print entry count in print_loop_info
authorJan Hubicka <jh@suse.cz>
Thu, 3 Aug 2023 20:49:22 +0000 (22:49 +0200)
committerJan Hubicka <jh@suse.cz>
Thu, 3 Aug 2023 20:49:22 +0000 (22:49 +0200)
gcc/ChangeLog:

* tree-cfg.cc (print_loop_info): Print entry count.

gcc/tree-cfg.cc

index c158454946c623876213dd1a990330b5270d9e90..ab1f8067c545efd8cc3daafb82de5170ec4ab42d 100644 (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);
     }
 
 }