]> 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)
committerThomas Schwinge <tschwinge@baylibre.com>
Wed, 4 Sep 2024 10:48:16 +0000 (12:48 +0200)
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.

Co-authored-by: Thomas Schwinge <tschwinge@baylibre.com>
gcc/predict.cc

index 43e3694cb42027404c4726aa7cc0b2c33da0705c..f611161f4aa0a651320ba084ab7aa9058b757751 100644 (file)
@@ -4210,7 +4210,7 @@ pass_profile::execute (function *fun)
      sreal iterations;
      for (auto loop : loops_list (cfun, LI_FROM_INNERMOST))
        if (expected_loop_iterations_by_profile (loop, &iterations))
-        fprintf (dump_file, "Loop got predicted %d to iterate %f times.\n",
+        fprintf (dump_file, "Loop %d got predicted to iterate %f times.\n",
           loop->num, iterations.to_double ());
    }
   return 0;