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.

Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed.

        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 | 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 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
-- 
2.43.0

Reply via email to