Skip to content

Commit 704b15e

Browse files
committed
tree-optimization/114749 - reset partial vector decision for no-SLP retry
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 bf2b523)
1 parent 0624852 commit 704b15e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gcc/tree-vect-loop.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2957,6 +2957,7 @@ vect_analyze_loop_2 (loop_vec_info loop_vinfo, bool &fatal,
29572957
LOOP_VINFO_VERSIONING_THRESHOLD (loop_vinfo) = 0;
29582958
LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P (loop_vinfo)
29592959
= saved_can_use_partial_vectors_p;
2960+
LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo) = false;
29602961

29612962
goto start_over;
29622963
}

0 commit comments

Comments
 (0)