================ @@ -2316,12 +2362,15 @@ static VectorType *isVectorPromotionViable(Partition &P, const DataLayout &DL) { // Put load and store types into a set for de-duplication. for (const Slice &S : P) { - Type *Ty; + Type *Ty = nullptr; if (auto *LI = dyn_cast<LoadInst>(S.getUse()->getUser())) Ty = LI->getType(); else if (auto *SI = dyn_cast<StoreInst>(S.getUse()->getUser())) Ty = SI->getValueOperand()->getType(); - else + else if (auto *II = dyn_cast<MemSetInst>(S.getUse()->getUser())) + Ty = getVectorTypeFor(*II, DL); + + if (!Ty) ---------------- macurtis-amd wrote:
Updated https://github.com/llvm/llvm-project/pull/133301 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits