[llvm] [VPlan] Extract reverse operation for reverse accesses (PR #146525)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 27 08:08:07 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) {
----------------
artagnon wrote:
I think you can pass Plan instead, and construct a TypeInfo?
https://github.com/llvm/llvm-project/pull/146525
More information about the llvm-commits
mailing list