]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix branch prediction dump message
authorFrederik Harwath <frederik@codesourcery.com>
Tue, 16 Nov 2021 15:13:51 +0000 (16:13 +0100)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 21 Jun 2022 13:11:46 +0000 (14:11 +0100)
Instead of, for instance, "Loop got predicted 1 to iterate 10 times"
the message should be "Loop 1 got predicted to iterate 10 times".

gcc/ChangeLog:

* predict.cc (pass_profile::execute): Fix dump message.

gcc/ChangeLog.omp
gcc/predict.cc

index bb06c9b537f6f2d8cd1f9e179ee62868f4183016..0b1622c31c4947cd0633c848bd2d02926baceec7 100644 (file)
@@ -1,3 +1,7 @@
+2021-11-16  Frederik Harwath  <frederik@codesourcery.com>
+
+       * predict.cc (pass_profile::execute): Fix dump message.
+
 2021-11-16  Frederik Harwath  <frederik@codesourcery.com>
 
        * graphite-sese-to-poly.cc (build_poly_sr_1): Fix a typo and
index 5734e4c851630c85d66ff751c76f97c04d7f1bdb..fe5a03d0cdcc2f42615ea7c83fad1467969271a5 100644 (file)
@@ -4114,7 +4114,7 @@ pass_profile::execute (function *fun)
    {
      for (auto loop : loops_list (cfun, LI_FROM_INNERMOST))
        if (loop->header->count.initialized_p ())
-         fprintf (dump_file, "Loop got predicted %d to iterate %i times.\n",
+         fprintf (dump_file, "Loop %d got predicted to iterate %i times.\n",
                   loop->num,
                   (int)expected_loop_iterations_unbounded (loop));
    }