1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[SLPVectorizer] Fix assert

This commit is contained in:
Anton Afanasyev 2020-11-17 18:46:31 +03:00
parent e71c3845ad
commit fbb47aa8a7

View File

@ -1765,7 +1765,7 @@ private:
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();