[llvm] [VPlan] Support VPReverseVectorPointer in DataWithEVL vectorization (PR #113667)

Shih-Po Hung via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 08:19:57 PDT 2024


================
@@ -1462,15 +1462,22 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
         assert(OrigMask && "Unmasked recipe when folding tail");
         return HeaderMask == OrigMask ? nullptr : OrigMask;
       };
+      auto SetEVLForReversePointer = [&EVL](VPValue *V) -> void {
+        if (auto R =
+                dyn_cast<VPReverseVectorPointerRecipe>(V->getDefiningRecipe()))
----------------
arcbbb wrote:

Nice catch. I think this can occur when V is loop-invariant. Fixed.

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


More information about the llvm-commits mailing list