[llvm] 0b420d6 - [SLP][NFC]Fix assert condition in newTreeEntry, NFC.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 20 13:25:39 PST 2020
Author: Alexey Bataev
Date: 2020-11-20T13:25:21-08:00
New Revision: 0b420d674a2233e4d7c5cdf9ff685e5456df4983
URL: https://github.com/llvm/llvm-project/commit/0b420d674a2233e4d7c5cdf9ff685e5456df4983
DIFF: https://github.com/llvm/llvm-project/commit/0b420d674a2233e4d7c5cdf9ff685e5456df4983.diff
LOG: [SLP][NFC]Fix assert condition in newTreeEntry, NFC.
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 ca71aea368f7..19c088b6ac9b 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -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();
More information about the llvm-commits
mailing list