From: Frederik Harwath Date: Tue, 16 Nov 2021 15:13:51 +0000 (+0100) Subject: Fix branch prediction dump message X-Git-Tag: basepoints/gcc-16~6104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35e4414bac06927387fb7a6fe10b373e766da1c1;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.cc (pass_profile::execute): Fix dump message. Co-authored-by: Thomas Schwinge --- diff --git a/gcc/predict.cc b/gcc/predict.cc index 43e3694cb42..f611161f4aa 100644 --- a/gcc/predict.cc +++ b/gcc/predict.cc @@ -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;