]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-optimization/118634 - improve cunroll dump
authorRichard Biener <rguenther@suse.de>
Fri, 24 Jan 2025 08:13:17 +0000 (09:13 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 24 Jan 2025 11:38:48 +0000 (12:38 +0100)
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.

gcc/tree-ssa-loop-ivcanon.cc

index d07b3d593f5919c2176120838418589189837b4e..ca6295c7de2f5e82c32d429bb501d3e8394b56eb 100644 (file)
@@ -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