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

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 7 01:06:21 PST 2025


================
@@ -2625,6 +2648,34 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
       }
     }
     ToErase.push_back(CurRecipe);
+
+    // Convert general reverse operations on loaded results into vp.reverse,
+    // when the VPVectorEndPointerRecipe adjusting the access address uses EVL
+    // instead of VF.
+    if (auto *LoadR = dyn_cast<VPWidenLoadEVLRecipe>(EVLRecipe)) {
----------------
lukel97 wrote:

Gentle reverse ping, I think after #155394 this bit can be moved into optimizeMaskToEVL now. Sorry that this PR got blocked for so long!

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


More information about the llvm-commits mailing list