Skip to content

Commit bf62b4f

Browse files
author
Mikhail Gudim
committed
got rid of "IsPossibleStrided" and a comment.
1 parent 3ddf49e commit bf62b4f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6824,14 +6824,12 @@ bool BoUpSLP::isStridedLoad(ArrayRef<Value *> VL, ArrayRef<Value *> PointerOps,
68246824
const int64_t Diff,
68256825
StridedPtrInfo &SPtrInfo) const {
68266826
const size_t Sz = VL.size();
6827-
// Simple check if not a strided access - clear order.
6828-
bool IsPossibleStrided = Diff % (Sz - 1) == 0;
6829-
if (!IsPossibleStrided)
6827+
if (Diff % (Sz - 1) != 0)
68306828
return false;
68316829

68326830
// Try to generate strided load node.
68336831
auto IsAnyPointerUsedOutGraph =
6834-
IsPossibleStrided && any_of(PointerOps, [&](Value *V) {
6832+
Iany_of(PointerOps, [&](Value *V) {
68356833
return isa<Instruction>(V) && any_of(V->users(), [&](User *U) {
68366834
return !isVectorized(U) && !MustGather.contains(U);
68376835
});

0 commit comments

Comments
 (0)