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 750b3dd commit 0716805Copy full SHA for 0716805
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -4919,7 +4919,8 @@ void BoUpSLP::optimizeGatherSequence() {
4919
// instructions into different buckets based on the insert lane.
4920
SmallVector<Instruction *, 16> Visited;
4921
for (auto I = CSEWorkList.begin(), E = CSEWorkList.end(); I != E; ++I) {
4922
- assert((I == CSEWorkList.begin() || !DT->dominates(*I, *std::prev(I))) &&
+ assert(*I &&
4923
+ (I == CSEWorkList.begin() || !DT->dominates(*I, *std::prev(I))) &&
4924
"Worklist not sorted properly!");
4925
BasicBlock *BB = (*I)->getBlock();
4926
// For all instructions in blocks containing gather sequences:
0 commit comments