We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 821def9 commit c911b47Copy full SHA for c911b47
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -11776,6 +11776,9 @@ void BoUpSLP::transformNodes() {
11776
}
11777
Slices.emplace_back(Cnt, Slice.size());
11778
11779
+ // Do not try to vectorize if all slides are strided or gathered with
11780
+ // vector factor 2 and there are more than 2 slices. Better to handle
11781
+ // them in gathered loads analysis, may result in better vectorization.
11782
if (VF == 2 && AllStrided && Slices.size() > 2)
11783
continue;
11784
auto AddCombinedNode = [&](unsigned Idx, unsigned Cnt, unsigned Sz) {
0 commit comments