[llvm] [VPlan] Extract reverse operation for reverse accesses (PR #146525)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 27 02:25:16 PDT 2025


================
@@ -2283,6 +2309,7 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
     HeaderMask->replaceAllUsesWith(EVLMask);
     ToErase.push_back(HeaderMask->getDefiningRecipe());
   }
+  convertToEVLReverse(Plan, TypeInfo, *AllOneMask, EVL);
----------------
Mel-Chen wrote:

@lukel97 @fhahn 
7c2493d3a9bb658995291dcbb8ab07a4b36a1da4
The conversion to vp.reverse now uses the new approach. It is no necessary to visit every recipe.

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


More information about the llvm-commits mailing list