public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-11] Fix branch prediction dump message
@ 2021-11-17  8:17 Frederik Harwath
  0 siblings, 0 replies; only message in thread
From: Frederik Harwath @ 2021-11-17  8:17 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:35cdc94463fe0336bf86f3b69d965de16f5ccf12

commit 35cdc94463fe0336bf86f3b69d965de16f5ccf12
Author: Frederik Harwath <frederik@codesourcery.com>
Date:   Tue Nov 16 16:13:51 2021 +0100

    Fix branch prediction dump message
    
    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.

Diff:
---
 gcc/predict.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/predict.c b/gcc/predict.c
index d0a8e5f8e04..76b68b816bb 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -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));
    }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-17  8:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-17  8:17 [gcc/devel/omp/gcc-11] Fix branch prediction dump message Frederik Harwath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).