aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-03-21 09:39:17 +0100
committerRichard Biener <rguenther@suse.de>2022-03-21 09:41:45 +0100
commit70b8f43695b0e6fabc760d247ac83f354092b21d (patch)
treec17985da97ac90a1b4fac827e3ee5b74f93dded8
parent5177634148aab7a7b193eaa9b8c73ce00a38c481 (diff)
downloadgcc-70b8f43695b0e6fabc760d247ac83f354092b21d.zip
gcc-70b8f43695b0e6fabc760d247ac83f354092b21d.tar.gz
gcc-70b8f43695b0e6fabc760d247ac83f354092b21d.tar.bz2
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.
-rw-r--r--gcc/tree-ssa-loop-niter.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop-niter.cc b/gcc/tree-ssa-loop-niter.cc
index 9bb5097..afa5106 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