]> 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>
Fri, 3 May 2024 12:50:18 +0000 (14:50 +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.

(cherry picked from commit bf2b5231312e1cea45732cb8df6ffa2b2c9115b6)

gcc/tree-vect-loop.cc

index 73caeb283e34b86877e4145f5a3258ec04c122fc..8bb2e3ff1c8201e28f5b260082f1db522d158ef4 100644 (file)
@@ -2957,6 +2957,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;
 }