Skip to content

Commit

Permalink
[SLP][NFC]Fix comparison of integers of different signs warning, NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-bataev committed Nov 17, 2023
1 parent c06700b commit 72b9763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 72b9763

Please sign in to comment.