https://gcc.gnu.org/g:16cd00a10035992f52ed67ff77eab20039555b03

commit r15-4065-g16cd00a10035992f52ed67ff77eab20039555b03
Author: Richard Biener <rguent...@suse.de>
Date:   Fri Oct 4 14:12:04 2024 +0200

    Fixup dumping of re-trying without/with single-lane SLP
    
    The following fixes the order of decrementing the SLP mode and
    the dumping.
    
            * tree-vect-loop.cc (vect_analyze_loop_2): Derement 'slp'
            before dumping which stage we're starting.

Diff:
---
 gcc/tree-vect-loop.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc
index 730888f62755..f1b3fb2e44ac 100644
--- a/gcc/tree-vect-loop.cc
+++ b/gcc/tree-vect-loop.cc
@@ -3275,6 +3275,9 @@ again:
        }
     }
 
+  /* Roll back state appropriately.  Degrade SLP this time.  From multi-
+     to single-lane to disabled.  */
+  --slp;
   if (dump_enabled_p ())
     {
       if (slp)
@@ -3285,9 +3288,6 @@ again:
                         "re-trying with SLP disabled\n");
     }
 
-  /* Roll back state appropriately.  Degrade SLP this time.  From multi-
-     to single-lane to disabled.  */
-  --slp;
   /* Restore vectorization factor as it were without SLP.  */
   LOOP_VINFO_VECT_FACTOR (loop_vinfo) = saved_vectorization_factor;
   /* Free the SLP instances.  */

Reply via email to