https://gcc.gnu.org/g:dc1e1b38ce60cd1da781c7dcd97a36add5482a00
commit r15-7175-gdc1e1b38ce60cd1da781c7dcd97a36add5482a00 Author: Richard Biener <rguent...@suse.de> Date: Fri Jan 24 09:13:17 2025 +0100 tree-optimization/118634 - improve cunroll dump We no longer subtract the estimated eliminated number of instructions from the estimated size after unrolling we print - this is a bit confusing when comparing dumps to previous releases. The following changes the dump from Estimated size after unrolling: 42 to Estimated size after unrolling: 42-12 for the testcase in the PR. PR tree-optimization/118634 * tree-ssa-loop-ivcanon.cc (try_unroll_loop_completely): Dump the number of estimated eliminated insns. Diff: --- gcc/tree-ssa-loop-ivcanon.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/tree-ssa-loop-ivcanon.cc b/gcc/tree-ssa-loop-ivcanon.cc index d07b3d593f59..ca6295c7de2f 100644 --- a/gcc/tree-ssa-loop-ivcanon.cc +++ b/gcc/tree-ssa-loop-ivcanon.cc @@ -855,8 +855,8 @@ try_unroll_loop_completely (class loop *loop, if (dump_file && (dump_flags & TDF_DETAILS)) { fprintf (dump_file, " Loop size: %d\n", (int) ninsns); - fprintf (dump_file, " Estimated size after unrolling: %d\n", - (int) unr_insns); + fprintf (dump_file, " Estimated size after unrolling: %d-%d\n", + (int) unr_insns, (int) est_eliminated); } /* If the code is going to shrink, we don't need to be extra