[llvm] 8bacd75 - [SLP][NFC]Fix a warning because of the missing parens, NFC.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 27 17:01:11 PDT 2023
Author: Alexey Bataev
Date: 2023-04-27T16:59:37-07:00
New Revision: 8bacd751259a459aa62995365ce22a1cfa1e373c
URL: https://github.com/llvm/llvm-project/commit/8bacd751259a459aa62995365ce22a1cfa1e373c
DIFF: https://github.com/llvm/llvm-project/commit/8bacd751259a459aa62995365ce22a1cfa1e373c.diff
LOG: [SLP][NFC]Fix a warning because of the missing parens, 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 d625a9451016..ba882fe83a3c 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -8910,10 +8910,10 @@ Instruction &BoUpSLP::getLastInstructionInBundle(const TreeEntry *E) {
FirstInst = I;
continue;
}
- assert((E->getOpcode() == Instruction::GetElementPtr &&
+ assert(((E->getOpcode() == Instruction::GetElementPtr &&
!isa<GetElementPtrInst>(I)) ||
(isVectorLikeInstWithConstOps(FirstInst) &&
- isVectorLikeInstWithConstOps(I)) &&
+ isVectorLikeInstWithConstOps(I))) &&
"Expected vector-like or non-GEP in GEP node insts only.");
if (!DT->isReachableFromEntry(FirstInst->getParent())) {
FirstInst = I;
More information about the llvm-commits
mailing list