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>
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;