diff options
author | Frederik Harwath <frederik@codesourcery.com> | 2021-11-16 16:13:51 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@baylibre.com> | 2024-09-04 12:48:16 +0200 |
commit | 35e4414bac06927387fb7a6fe10b373e766da1c1 (patch) | |
tree | 583c5f8f9bf91254f3161d3bbc837e1fd12c4602 /gcc | |
parent | 347a953d855c6b246b1604bdf4728f615cb471b6 (diff) | |
download | gcc-35e4414bac06927387fb7a6fe10b373e766da1c1.zip gcc-35e4414bac06927387fb7a6fe10b373e766da1c1.tar.gz gcc-35e4414bac06927387fb7a6fe10b373e766da1c1.tar.bz2 |
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>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/predict.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.cc b/gcc/predict.cc index 43e3694..f611161 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; |