================ @@ -8231,13 +8231,24 @@ VPRecipeBase *VPRecipeBuilder::tryToWidenMemory(Instruction *I, bool Consecutive = Reverse || Decision == LoopVectorizationCostModel::CM_Widen; + VPValue *Ptr = isa<LoadInst>(I) ? Operands[0] : Operands[1]; + if (Decision != LoopVectorizationCostModel::CM_GatherScatter && + Decision != LoopVectorizationCostModel::CM_Interleave) { + auto *VectorPtr = Reverse + ? new VPInstruction(VPInstruction::CreateVectorPtr, + {Ptr, Ptr}, I->getDebugLoc()) + : new VPInstruction(VPInstruction::CreateVectorPtr, ---------------- alexey-bataev wrote:
Just VectorPtr maybe? https://github.com/llvm/llvm-project/pull/72164 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits