diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 78f7783328db..f0a5e4590974 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -979,7 +979,7 @@ bool BoUpSLP::isConsecutiveAccess(Value *A, Value *B) { if (!PtrA || !PtrB || (ASA != ASB)) return false; - // Check that A and B are of the same type. + // Make sure that A and B are different pointers of the same type. if (PtrA == PtrB || PtrA->getType() != PtrB->getType()) return false;