[llvm] 9ac0315 - Add comment to assert from a843f26
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 12 11:29:14 PDT 2024
Author: David Blaikie
Date: 2024-03-12T18:28:30Z
New Revision: 9ac03158987802706110ef465c4b6a7553cc4b86
URL: https://github.com/llvm/llvm-project/commit/9ac03158987802706110ef465c4b6a7553cc4b86
DIFF: https://github.com/llvm/llvm-project/commit/9ac03158987802706110ef465c4b6a7553cc4b86.diff
LOG: Add comment to assert from a843f26
Added:
Modified:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 6ef46e3c5258b3..b8b67609d755fd 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -16671,7 +16671,7 @@ bool SLPVectorizerPass::vectorizeChainsInBlock(BasicBlock *BB, BoUpSLP &R) {
return false;
}
// Undefs come last.
- assert(U1 && U2);
+ assert(U1 && U2 && "The only thing left should be undef & undef.");
continue;
}
return false;
More information about the llvm-commits
mailing list