From 72b97630bc91efdf7671b08629b08c7b1c371a0b Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Thu, 16 Nov 2023 17:17:59 -0800 Subject: [PATCH] [SLP][NFC]Fix comparison of integers of different signs warning, NFC. --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index d796717521d625..fca9649193e5a9 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -8564,7 +8564,7 @@ bool BoUpSLP::isTreeTinyAndNotFullyVectorizable(bool ForReduction) const { // profitable for the vectorization, we can skip it, if the cost threshold is // default. The cost of vectorized PHI nodes is almost always 0 + the cost of // gathers/buildvectors. - constexpr unsigned Limit = 4; + constexpr int Limit = 4; if (!ForReduction && !SLPCostThreshold.getNumOccurrences() && !VectorizableTree.empty() && all_of(VectorizableTree, [&](const std::unique_ptr &TE) {