[llvm] [VPlan] Extract reverse operation for reverse accesses (PR #146525)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 1 04:45:26 PDT 2025
================
@@ -2151,6 +2151,22 @@ void VPlanTransforms::addActiveLaneMask(
HeaderMask->eraseFromParent();
}
+/// If \p R is a VPInstruction::Reverse, return a VPWidenIntrinsicRecipe
+/// for the vp.reverse intrinsic using \p EVL. Returns nullptr otherwise.
+static VPWidenIntrinsicRecipe *
+getEVLReverse(VPRecipeBase &R, VPTypeAnalysis &TypeInfo, VPValue &EVL) {
----------------
lukel97 wrote:
I think we want to reuse a TypeInfo as long as possible as it preserves the cache and prevents unnecessary traversal of the VPlan to find the scalar type
https://github.com/llvm/llvm-project/pull/146525
More information about the llvm-commits
mailing list