[llvm] [VPlan] Extract reverse operation for reverse accesses (PR #146525)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 14 08:25:48 PDT 2025
================
@@ -917,6 +918,8 @@ Value *VPInstruction::generate(VPTransformState &State) {
return Res;
}
+ case VPInstruction::Reverse:
+ return Builder.CreateVectorReverse(State.get(getOperand(0)), "reverse");
----------------
Mel-Chen wrote:
@fhahn What do you think? I’d like to hear your suggestion. If you feel that changing it to `res = reverse op, N` isn’t appropriate, that’s fine. We can still convert VPInstruction::Reverse into VPWidenIntrinsicRecipe along the def-use/use-def chain from VPWidenLoad/StoreEVLRecipe.
https://github.com/llvm/llvm-project/pull/146525
More information about the llvm-commits
mailing list