]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fixup dumping of re-trying without/with single-lane SLP
authorRichard Biener <rguenther@suse.de>
Fri, 4 Oct 2024 12:12:04 +0000 (14:12 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 4 Oct 2024 12:14:13 +0000 (14:14 +0200)
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.

gcc/tree-vect-loop.cc

index 730888f627557b53cb96aaac1eb960c057b9338c..f1b3fb2e44ac64f71310eb5208822e147af95cfa 100644 (file)
@@ -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.  */