aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-10-04 14:12:04 +0200
committerRichard Biener <rguenth@gcc.gnu.org>2024-10-04 14:14:13 +0200
commit16cd00a10035992f52ed67ff77eab20039555b03 (patch)
tree3efefb00f24cb9925c2f32c8e8d2334b44ce1ea1
parentf82055f8247478d9e2c00f2a442248e42188b8d1 (diff)
downloadgcc-16cd00a10035992f52ed67ff77eab20039555b03.zip
gcc-16cd00a10035992f52ed67ff77eab20039555b03.tar.gz
gcc-16cd00a10035992f52ed67ff77eab20039555b03.tar.bz2
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.
-rw-r--r--gcc/tree-vect-loop.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc
index 730888f..f1b3fb2 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. */