@@ -4991,9 +4991,9 @@ static bool clusterSortPtrAccesses(ArrayRef<Value *> VL, Type *ElemTy,
49914991 auto *Mid = std::stable_partition(
49924992 Begin, End, [&Root](auto V) { return std::get<2>(V) == Root; });
49934993 DenseMap<Value *, DenseMap<Value *, bool>> LessThan;
4994- for (auto I = Begin; I < Mid; ++I)
4994+ for (auto * I = Begin; I < Mid; ++I)
49954995 LessThan.try_emplace(std::get<1>(*I));
4996- for (auto I = Begin; I < Mid; ++I) {
4996+ for (auto * I = Begin; I < Mid; ++I) {
49974997 Value *V = std::get<1>(*I);
49984998 while (auto *Gep = dyn_cast<GetElementPtrInst>(V)) {
49994999 V = Gep->getOperand(0);
@@ -9455,7 +9455,7 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
94559455 auto It = MinBWs.find(E);
94569456 Type *OrigScalarTy = ScalarTy;
94579457 if (It != MinBWs.end()) {
9458- auto VecTy = dyn_cast<FixedVectorType>(ScalarTy);
9458+ auto * VecTy = dyn_cast<FixedVectorType>(ScalarTy);
94599459 ScalarTy = IntegerType::get(F->getContext(), It->second.first);
94609460 if (VecTy)
94619461 ScalarTy = getWidenedType(ScalarTy, VecTy->getNumElements());
@@ -13133,7 +13133,7 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E, bool PostponedPHIs) {
1313313133 ScalarTy = IE->getOperand(1)->getType();
1313413134 auto It = MinBWs.find(E);
1313513135 if (It != MinBWs.end()) {
13136- auto VecTy = dyn_cast<FixedVectorType>(ScalarTy);
13136+ auto * VecTy = dyn_cast<FixedVectorType>(ScalarTy);
1313713137 ScalarTy = IntegerType::get(F->getContext(), It->second.first);
1313813138 if (VecTy)
1313913139 ScalarTy = getWidenedType(ScalarTy, VecTy->getNumElements());
0 commit comments