[llvm] 72b9763 - [SLP][NFC]Fix comparison of integers of different signs warning, NFC.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 16 17:25:10 PST 2023
Author: Alexey Bataev
Date: 2023-11-16T17:18:28-08:00
New Revision: 72b97630bc91efdf7671b08629b08c7b1c371a0b
URL: https://github.com/llvm/llvm-project/commit/72b97630bc91efdf7671b08629b08c7b1c371a0b
DIFF: https://github.com/llvm/llvm-project/commit/72b97630bc91efdf7671b08629b08c7b1c371a0b.diff
LOG: [SLP][NFC]Fix comparison of integers of different signs warning, 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 d796717521d625d..fca9649193e5a9e 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<TreeEntry> &TE) {
More information about the llvm-commits
mailing list