@@ -3898,7 +3898,7 @@ class BoUpSLP {
3898
3898
3899
3899
/// When ReuseReorderShuffleIndices is empty it just returns position of \p
3900
3900
/// V within vector of Scalars. Otherwise, try to remap on its reuse index.
3901
- int findLaneForValue(Value *V) const {
3901
+ unsigned findLaneForValue(Value *V) const {
3902
3902
unsigned FoundLane = getVectorFactor();
3903
3903
for (auto *It = find(Scalars, V), *End = Scalars.end(); It != End;
3904
3904
std::advance(It, 1)) {
@@ -4344,7 +4344,7 @@ class BoUpSLP {
4344
4344
4345
4345
/// This POD struct describes one external user in the vectorized tree.
4346
4346
struct ExternalUser {
4347
- ExternalUser(Value *S, llvm::User *U, const TreeEntry &E, int L)
4347
+ ExternalUser(Value *S, llvm::User *U, const TreeEntry &E, unsigned L)
4348
4348
: Scalar(S), User(U), E(E), Lane(L) {}
4349
4349
4350
4350
/// Which scalar in our function.
@@ -4357,7 +4357,7 @@ class BoUpSLP {
4357
4357
const TreeEntry &E;
4358
4358
4359
4359
/// Which lane does the scalar belong to.
4360
- int Lane;
4360
+ unsigned Lane;
4361
4361
};
4362
4362
using UserList = SmallVector<ExternalUser, 16>;
4363
4363
@@ -7901,7 +7901,7 @@ void BoUpSLP::buildExternalUses(
7901
7901
// Check if the scalar is externally used as an extra arg.
7902
7902
const auto ExtI = ExternallyUsedValues.find(Scalar);
7903
7903
if (ExtI != ExternallyUsedValues.end()) {
7904
- int FoundLane = Entry->findLaneForValue(Scalar);
7904
+ unsigned FoundLane = Entry->findLaneForValue(Scalar);
7905
7905
LLVM_DEBUG(dbgs() << "SLP: Need to extract: Extra arg from lane "
7906
7906
<< FoundLane << " from " << *Scalar << ".\n");
7907
7907
ScalarToExtUses.try_emplace(Scalar, ExternalUses.size());
@@ -7949,7 +7949,7 @@ void BoUpSLP::buildExternalUses(
7949
7949
7950
7950
if (U && Scalar->hasNUsesOrMore(UsesLimit))
7951
7951
U = nullptr;
7952
- int FoundLane = Entry->findLaneForValue(Scalar);
7952
+ unsigned FoundLane = Entry->findLaneForValue(Scalar);
7953
7953
LLVM_DEBUG(dbgs() << "SLP: Need to extract:" << *UserInst
7954
7954
<< " from lane " << FoundLane << " from " << *Scalar
7955
7955
<< ".\n");
0 commit comments