]> 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)
committerFrederik Harwath <frederik@codesourcery.com>
Wed, 17 Nov 2021 07:35:48 +0000 (08:35 +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.c (pass_profile::execute): Fix dump message.

gcc/predict.c

index d0a8e5f8e04fc3d1ec770602589299b0a30b3b59..76b68b816bbd81f37ed2438bca0e73803ea3b8bc 100644 (file)
@@ -4117,7 +4117,7 @@ pass_profile::execute (function *fun)
      class loop *loop;
      FOR_EACH_LOOP (loop, 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));
    }