@@ -4991,9 +4991,9 @@ static bool clusterSortPtrAccesses(ArrayRef<Value *> VL, Type *ElemTy,
4991
4991
auto *Mid = std::stable_partition(
4992
4992
Begin, End, [&Root](auto V) { return std::get<2>(V) == Root; });
4993
4993
DenseMap<Value *, DenseMap<Value *, bool>> LessThan;
4994
- for (auto I = Begin; I < Mid; ++I)
4994
+ for (auto * I = Begin; I < Mid; ++I)
4995
4995
LessThan.try_emplace(std::get<1>(*I));
4996
- for (auto I = Begin; I < Mid; ++I) {
4996
+ for (auto * I = Begin; I < Mid; ++I) {
4997
4997
Value *V = std::get<1>(*I);
4998
4998
while (auto *Gep = dyn_cast<GetElementPtrInst>(V)) {
4999
4999
V = Gep->getOperand(0);
@@ -9455,7 +9455,7 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
9455
9455
auto It = MinBWs.find(E);
9456
9456
Type *OrigScalarTy = ScalarTy;
9457
9457
if (It != MinBWs.end()) {
9458
- auto VecTy = dyn_cast<FixedVectorType>(ScalarTy);
9458
+ auto * VecTy = dyn_cast<FixedVectorType>(ScalarTy);
9459
9459
ScalarTy = IntegerType::get(F->getContext(), It->second.first);
9460
9460
if (VecTy)
9461
9461
ScalarTy = getWidenedType(ScalarTy, VecTy->getNumElements());
@@ -13133,7 +13133,7 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E, bool PostponedPHIs) {
13133
13133
ScalarTy = IE->getOperand(1)->getType();
13134
13134
auto It = MinBWs.find(E);
13135
13135
if (It != MinBWs.end()) {
13136
- auto VecTy = dyn_cast<FixedVectorType>(ScalarTy);
13136
+ auto * VecTy = dyn_cast<FixedVectorType>(ScalarTy);
13137
13137
ScalarTy = IntegerType::get(F->getContext(), It->second.first);
13138
13138
if (VecTy)
13139
13139
ScalarTy = getWidenedType(ScalarTy, VecTy->getNumElements());
0 commit comments