[llvm] [LV] Convert gather loads with invariant stride into strided loads (PR #147297)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 9 05:37:27 PST 2025
================
@@ -2796,6 +2796,26 @@ static VPRecipeBase *optimizeMaskToEVL(VPValue *HeaderMask,
return new VPWidenLoadEVLRecipe(cast<VPWidenLoadRecipe>(CurRecipe),
AdjustEndPtr(EndPtr), EVL, Mask);
+ if (auto *MI = dyn_cast<VPWidenMemIntrinsicRecipe>(&CurRecipe))
+ if (MI->getVectorIntrinsicID() == Intrinsic::experimental_vp_strided_load &&
+ match(MI->getMask(), m_RemoveMask(HeaderMask, Mask))) {
----------------
Mel-Chen wrote:
61c1774644d531669ea7ced80c0ff7d2d980158b
https://github.com/llvm/llvm-project/pull/147297
More information about the llvm-commits
mailing list