Message ID | 20220321093430.00A1D13A5E@imap2.suse-dmz.suse.de |
---|---|
State | New |
Headers | show |
Series | Dump when estimating the number of iterations of a loop | expand |
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