Skip to content

Commit

Permalink
[SLPVectorizer] Fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-afanasyev committed Nov 17, 2020
1 parent bba96c9 commit 0a1d315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Expand Up @@ -1765,7 +1765,7 @@ class BoUpSLP {
ArrayRef<unsigned> ReorderIndices = None) {
assert(!(Bundle && EntryState == TreeEntry::NeedToGather) &&
"Need to gather vectorized entry?");
assert(!Bundle && EntryState != TreeEntry::NeedToGather &&
assert((Bundle || EntryState == TreeEntry::NeedToGather) &&
"Need to vectorize gather entry?");
VectorizableTree.push_back(std::make_unique<TreeEntry>(VectorizableTree));
TreeEntry *Last = VectorizableTree.back().get();
Expand Down

0 comments on commit 0a1d315

Please sign in to comment.