Skip to content

Commit

Permalink
[SLP][NFC]Fix assert condition in newTreeEntry, NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-bataev committed Nov 20, 2020
1 parent 3b947cc commit 0b420d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Expand Up @@ -1763,9 +1763,8 @@ class BoUpSLP {
const EdgeInfo &UserTreeIdx,
ArrayRef<unsigned> ReuseShuffleIndices = None,
ArrayRef<unsigned> ReorderIndices = None) {
assert(!(Bundle && EntryState == TreeEntry::NeedToGather) &&
"Need to gather vectorized entry?");
assert((Bundle || EntryState == TreeEntry::NeedToGather) &&
assert(((!Bundle && EntryState == TreeEntry::NeedToGather) ||
(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 0b420d6

Please sign in to comment.