[llvm] [LV][EVL] Support interleaved access with tail folding by EVL (PR #152070)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 04:20:47 PDT 2025


================
@@ -2142,6 +2142,10 @@ static VPRecipeBase *optimizeMaskToEVL(VPValue *HeaderMask,
         VPValue *NewMask = GetNewMask(S->getMask());
         return new VPWidenStoreEVLRecipe(*S, EVL, NewMask);
       })
+      .Case<VPInterleaveRecipe>([&](VPInterleaveRecipe *IR) {
+        VPValue *NewMask = GetNewMask(IR->getMask());
+        return new VPInterleaveEVLRecipe(*IR, EVL, NewMask, IR->getDebugLoc());
----------------
lukel97 wrote:

Do we need to check that the original interleave recipe isn't reversed here?

https://github.com/llvm/llvm-project/pull/152070


More information about the llvm-commits mailing list