public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7732] Dump when estimating the number of iterations of a loop
@ 2022-03-21 9:35 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2022-03-21 9:35 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:70b8f43695b0e6fabc760d247ac83f354092b21d
commit r12-7732-g70b8f43695b0e6fabc760d247ac83f354092b21d
Author: Richard Biener <rguenther@suse.de>
Date: Mon Mar 21 09:39:17 2022 +0100
Dump when estimating the number of iterations of a loop
Currently the dumps are somewhat inter-mangled, not showing the
(possibly bad) recursion between niter estimation and number of
iteration computation. The following tries to improve deciphering
a little bit by dumping when we do niter estimation.
2022-03-21 Richard Biener <rguenther@suse.de>
* tree-ssa-loop-niter.cc (estimate_numbers_of_iterations): Dump
we are estimating niter of loop.
Diff:
---
gcc/tree-ssa-loop-niter.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/tree-ssa-loop-niter.cc b/gcc/tree-ssa-loop-niter.cc
index 9bb5097379b..afa51064953 100644
--- a/gcc/tree-ssa-loop-niter.cc
+++ b/gcc/tree-ssa-loop-niter.cc
@@ -4374,6 +4374,9 @@ estimate_numbers_of_iterations (class loop *loop)
if (loop->estimate_state != EST_NOT_COMPUTED)
return;
+ if (dump_file && (dump_flags & TDF_DETAILS))
+ fprintf (dump_file, "Estimating # of iterations of loop %d\n", loop->num);
+
loop->estimate_state = EST_AVAILABLE;
/* If we have a measured profile, use it to estimate the number of
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-21 9:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-21 9:35 [gcc r12-7732] Dump when estimating the number of iterations of a loop Richard Biener
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).