]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-optimization/114749 - reset partial vector decision for no-SLP retry
authorRichard Biener <rguenther@suse.de>
Wed, 17 Apr 2024 08:40:04 +0000 (10:40 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 17 Apr 2024 09:29:56 +0000 (11:29 +0200)
The following makes sure to reset LOOP_VINFO_USING_PARTIAL_VECTORS_P
to its default of false when re-trying without SLP as otherwise
analysis may run into bogus asserts.

PR tree-optimization/114749
* tree-vect-loop.cc (vect_analyze_loop_2): Reset
LOOP_VINFO_USING_PARTIAL_VECTORS_P when re-trying without SLP.

gcc/tree-vect-loop.cc

index 431b3e9492c0362ca48032a0172a8aa467983ef7..a6cf0a5546ce609bc5eb8cbadd5cee1d0d884357 100644 (file)
@@ -3400,6 +3400,7 @@ again:
   LOOP_VINFO_VERSIONING_THRESHOLD (loop_vinfo) = 0;
   LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P (loop_vinfo)
     = saved_can_use_partial_vectors_p;
+  LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo) = false;
 
   goto start_over;
 }