[llvm] [LV] Convert gather loads with constant stride into strided loads (PR #147297)
Andrei Elovikov via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 13 08:44:54 PST 2026
================
@@ -2955,6 +2955,20 @@ static VPRecipeBase *optimizeMaskToEVL(VPValue *HeaderMask,
TypeInfo.inferScalarType(LoadR), {}, {}, DL);
}
+ VPValue *Stride;
+ if (match(&CurRecipe, m_Intrinsic<Intrinsic::experimental_vp_strided_load>(
+ m_VPValue(Addr), m_VPValue(Stride),
+ m_RemoveMask(HeaderMask, Mask),
----------------
eas wrote:
Even if we don't tail-fold? Are we not running this transformation for that scenario even if our target would still support strided loads?
https://github.com/llvm/llvm-project/pull/147297
More information about the llvm-commits
mailing list