public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-12] Fix branch prediction dump message
@ 2022-06-29 14:41 Kwok Yeung
0 siblings, 0 replies; only message in thread
From: Kwok Yeung @ 2022-06-29 14:41 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9a77a1c4aad36bfb403433e5df567b94ee3e2257
commit 9a77a1c4aad36bfb403433e5df567b94ee3e2257
Author: Frederik Harwath <frederik@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.
Diff:
---
gcc/ChangeLog.omp | 4 ++++
gcc/predict.cc | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp
index bb06c9b537f..0b1622c31c4 100644
--- a/gcc/ChangeLog.omp
+++ b/gcc/ChangeLog.omp
@@ -1,3 +1,7 @@
+2021-11-16 Frederik Harwath <frederik@codesourcery.com>
+
+ * predict.cc (pass_profile::execute): Fix dump message.
+
2021-11-16 Frederik Harwath <frederik@codesourcery.com>
* graphite-sese-to-poly.cc (build_poly_sr_1): Fix a typo and
diff --git a/gcc/predict.cc b/gcc/predict.cc
index 5734e4c8516..fe5a03d0cdc 100644
--- a/gcc/predict.cc
+++ b/gcc/predict.cc
@@ -4114,7 +4114,7 @@ pass_profile::execute (function *fun)
{
for (auto loop : loops_list (cfun, LI_FROM_INNERMOST))
if (loop->header->count.initialized_p ())
- fprintf (dump_file, "Loop got predicted %d to iterate %i times.\n",
+ fprintf (dump_file, "Loop %d got predicted to iterate %i times.\n",
loop->num,
(int)expected_loop_iterations_unbounded (loop));
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-29 14:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 14:41 [gcc/devel/omp/gcc-12] Fix branch prediction dump message Kwok Yeung
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).