From 8bacd751259a459aa62995365ce22a1cfa1e373c Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Thu, 27 Apr 2023 16:33:58 -0700 Subject: [PATCH] [SLP][NFC]Fix a warning because of the missing parens, NFC. --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index d625a94..ba882fe 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(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; -- 2.7.4