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.
This commit is contained in:
Richard Biener 2024-10-04 14:12:04 +02:00 committed by Richard Biener
parent f82055f824
commit 16cd00a100

View 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. */