Skip to content

Commit c911b47

Browse files
committed
address comments
Created using spr 1.3.5
1 parent 821def9 commit c911b47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11776,6 +11776,9 @@ void BoUpSLP::transformNodes() {
1177611776
}
1177711777
Slices.emplace_back(Cnt, Slice.size());
1177811778
}
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.
1177911782
if (VF == 2 && AllStrided && Slices.size() > 2)
1178011783
continue;
1178111784
auto AddCombinedNode = [&](unsigned Idx, unsigned Cnt, unsigned Sz) {

0 commit comments

Comments
 (0)