From d4ee43153d37779f29d14c38a454467506942b05 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Tue, 21 Jun 2022 10:04:39 -0700 Subject: [PATCH] [SLP][NFC]Fix a warning in a comparison, NFC. Fixed signedness warning. --- 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 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; -- 2.7.4