From 35e4414bac06927387fb7a6fe10b373e766da1c1 Mon Sep 17 00:00:00 2001
From: Frederik Harwath <frederik@codesourcery.com>
Date: Tue, 16 Nov 2021 16:13:51 +0100
Subject: [PATCH] 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 <tschwinge@baylibre.com>
---
gcc/predict.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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;
--
2.34.1