Skip to content

Commit 72b9763

Browse files
committed
[SLP][NFC]Fix comparison of integers of different signs warning, NFC.
1 parent c06700b commit 72b9763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8564,7 +8564,7 @@ bool BoUpSLP::isTreeTinyAndNotFullyVectorizable(bool ForReduction) const {
85648564
// profitable for the vectorization, we can skip it, if the cost threshold is
85658565
// default. The cost of vectorized PHI nodes is almost always 0 + the cost of
85668566
// gathers/buildvectors.
8567-
constexpr unsigned Limit = 4;
8567+
constexpr int Limit = 4;
85688568
if (!ForReduction && !SLPCostThreshold.getNumOccurrences() &&
85698569
!VectorizableTree.empty() &&
85708570
all_of(VectorizableTree, [&](const std::unique_ptr<TreeEntry> &TE) {

0 commit comments

Comments
 (0)