https://gcc.gnu.org/g:35e4414bac06927387fb7a6fe10b373e766da1c1
commit r15-3449-g35e4414bac06927387fb7a6fe10b373e766da1c1 Author: Frederik Harwath <frede...@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.cc (pass_profile::execute): Fix dump message. Co-authored-by: Thomas Schwinge <tschwi...@baylibre.com> Diff: --- gcc/predict.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;