From: Richard Biener Date: Fri, 24 Jan 2025 08:13:17 +0000 (+0100) Subject: tree-optimization/118634 - improve cunroll dump X-Git-Tag: basepoints/gcc-16~2378 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc1e1b38ce60cd1da781c7dcd97a36add5482a00;p=thirdparty%2Fgcc.git 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 --git a/gcc/tree-ssa-loop-ivcanon.cc b/gcc/tree-ssa-loop-ivcanon.cc index d07b3d593f5..ca6295c7de2 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