@@ -2513,14 +2513,14 @@ class BoUpSLP {
2513
2513
/// Helper for `findExternalStoreUsersReorderIndices()`. It iterates over the
2514
2514
/// users of \p TE and collects the stores. It returns the map from the store
2515
2515
/// pointers to the collected stores.
2516
- DenseMap<Value *, SmallVector<StoreInst *, 4 >>
2516
+ DenseMap<Value *, SmallVector<StoreInst *>>
2517
2517
collectUserStores(const BoUpSLP::TreeEntry *TE) const;
2518
2518
2519
2519
/// Helper for `findExternalStoreUsersReorderIndices()`. It checks if the
2520
2520
/// stores in \p StoresVec can form a vector instruction. If so it returns true
2521
2521
/// and populates \p ReorderIndices with the shuffle indices of the the stores
2522
2522
/// when compared to the sorted vector.
2523
- bool canFormVector(const SmallVector <StoreInst *, 4> & StoresVec,
2523
+ bool canFormVector(ArrayRef <StoreInst *> StoresVec,
2524
2524
OrdersType &ReorderIndices) const;
2525
2525
2526
2526
/// Iterates through the users of \p TE, looking for scalar stores that can be
@@ -4913,9 +4913,9 @@ void BoUpSLP::buildExternalUses(
4913
4913
}
4914
4914
}
4915
4915
4916
- DenseMap<Value *, SmallVector<StoreInst *, 4 >>
4916
+ DenseMap<Value *, SmallVector<StoreInst *>>
4917
4917
BoUpSLP::collectUserStores(const BoUpSLP::TreeEntry *TE) const {
4918
- DenseMap<Value *, SmallVector<StoreInst *, 4 >> PtrToStoresMap;
4918
+ DenseMap<Value *, SmallVector<StoreInst *>> PtrToStoresMap;
4919
4919
for (unsigned Lane : seq<unsigned>(0, TE->Scalars.size())) {
4920
4920
Value *V = TE->Scalars[Lane];
4921
4921
// To save compilation time we don't visit if we have too many users.
@@ -4954,14 +4954,14 @@ BoUpSLP::collectUserStores(const BoUpSLP::TreeEntry *TE) const {
4954
4954
return PtrToStoresMap;
4955
4955
}
4956
4956
4957
- bool BoUpSLP::canFormVector(const SmallVector <StoreInst *, 4> & StoresVec,
4957
+ bool BoUpSLP::canFormVector(ArrayRef <StoreInst *> StoresVec,
4958
4958
OrdersType &ReorderIndices) const {
4959
4959
// We check whether the stores in StoreVec can form a vector by sorting them
4960
4960
// and checking whether they are consecutive.
4961
4961
4962
4962
// To avoid calling getPointersDiff() while sorting we create a vector of
4963
4963
// pairs {store, offset from first} and sort this instead.
4964
- SmallVector<std::pair<StoreInst *, int>, 4 > StoreOffsetVec(StoresVec.size());
4964
+ SmallVector<std::pair<StoreInst *, int>> StoreOffsetVec(StoresVec.size());
4965
4965
StoreInst *S0 = StoresVec[0];
4966
4966
StoreOffsetVec[0] = {S0, 0};
4967
4967
Type *S0Ty = S0->getValueOperand()->getType();
@@ -5030,7 +5030,7 @@ SmallVector<BoUpSLP::OrdersType, 1>
5030
5030
BoUpSLP::findExternalStoreUsersReorderIndices(TreeEntry *TE) const {
5031
5031
unsigned NumLanes = TE->Scalars.size();
5032
5032
5033
- DenseMap<Value *, SmallVector<StoreInst *, 4 >> PtrToStoresMap =
5033
+ DenseMap<Value *, SmallVector<StoreInst *>> PtrToStoresMap =
5034
5034
collectUserStores(TE);
5035
5035
5036
5036
// Holds the reorder indices for each candidate store vector that is a user of
0 commit comments