From: Alexey Bataev Date: Tue, 21 Jun 2022 17:04:39 +0000 (-0700) Subject: [SLP][NFC]Fix a warning in a comparison, NFC. X-Git-Tag: upstream/15.0.7~4019 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4ee43153d37779f29d14c38a454467506942b05;p=platform%2Fupstream%2Fllvm.git [SLP][NFC]Fix a warning in a comparison, NFC. Fixed signedness warning. --- diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 746ad43..dc6f85e 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -4620,10 +4620,10 @@ void BoUpSLP::buildTree_rec(ArrayRef VL, unsigned Depth, for (int Op = 0, E = S.MainOp->getNumOperands(); Op < E; ++Op) Candidates.emplace_back().emplace_back(I1->getOperand(Op), I2->getOperand(Op)); - if (count_if( + if (static_cast(count_if( Candidates, [this](ArrayRef> Cand) { return findBestRootPair(Cand, LookAheadHeuristics::ScoreSplat); - }) >= S.MainOp->getNumOperands() / 2) + })) >= S.MainOp->getNumOperands() / 2) return false; if (S.MainOp->getNumOperands() > 2) return true;