]> 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>
Fri, 12 May 2023 18:13:48 +0000 (19:13 +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 ce25d3aa31b99e6538da789599a8514d1a89539a..594728eb99b5370457b672449631377696cf1eeb 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>
            Thomas Schwinge <thomas@codesourcery.com>
 
index a0dc409648f733d023b17c4c248ee3362765a02c..02467828fd52ecaea8aa3191cb2180e0e7d58c14 100644 (file)
@@ -4126,7 +4126,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));
    }