diff mbox series

Fixup dumping of re-trying without/with single-lane SLP

Message ID 20241004121351.142A913A6E@imap1.dmz-prg2.suse.org
State New
Headers show
Series Fixup dumping of re-trying without/with single-lane SLP | expand

Commit Message

Richard Biener Oct. 4, 2024, 12:13 p.m. UTC
The following fixes the order of decrementing the SLP mode and
the dumping.

Build on x86_64-unknown-linux-gnu, pushed.

	* tree-vect-loop.cc (vect_analyze_loop_2): Derement 'slp'
	before dumping which stage we're starting.
---
 gcc/tree-vect-loop.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc
index 3a9eca289d8..3d62fecfae1 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.  */