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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 21 11:13:02 PST 2024


================
@@ -1445,6 +1445,14 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
   VPTypeAnalysis TypeInfo(CanonicalIVType);
   LLVMContext &Ctx = CanonicalIVType->getContext();
   SmallVector<VPValue *> HeaderMasks = collectAllHeaderMasks(Plan);
+
+  for (VPUser *U : Plan.getVF().users()) {
+    auto *CurRecipe = cast<VPRecipeBase>(U);
+
+    if (auto *R = dyn_cast<VPReverseVectorPointerRecipe>(CurRecipe))
----------------
fhahn wrote:

```suggestion
    if (auto *R = dyn_cast<VPReverseVectorPointerRecipe>(U))
```

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


More information about the llvm-commits mailing list