Skip to content

Commit

Permalink
[SLP][NFC]Fix signedness to avoid comparison warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-bataev committed Mar 15, 2024
1 parent fd09d51 commit 9a42bdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Expand Up @@ -7678,8 +7678,8 @@ class BoUpSLP::ShuffleCostEstimator : public BaseShuffleAnalysis {
if (NeedInsertSubvectorAnalysis) {
// Add the cost for the subvectors insert.
SmallVector<int> ShuffleMask(VL.size());
for (int I = VF, E = VL.size(); I < E; I += VF) {
for (int Idx : seq<int>(0, E))
for (unsigned I = VF, E = VL.size(); I < E; I += VF) {
for (unsigned Idx : seq<unsigned>(0, E))
ShuffleMask[Idx] = Idx / VF == I ? E + Idx % VF : Idx;
GatherCost += TTI.getShuffleCost(TTI::SK_InsertSubvector, VecTy,
ShuffleMask, CostKind, I, LoadTy);
Expand Down

0 comments on commit 9a42bdc

Please sign in to comment.