From: Frederik Harwath Date: Tue, 16 Nov 2021 15:13:51 +0000 (+0100) Subject: Fix branch prediction dump message X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35cdc94463fe0336bf86f3b69d965de16f5ccf12;p=thirdparty%2Fgcc.git 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 --git a/gcc/predict.c b/gcc/predict.c index d0a8e5f8e04f..76b68b816bbd 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)); }