[llvm] [LoopVectorize] Generate wide active lane masks (PR #147535)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 14 06:19:54 PDT 2025


================
@@ -954,6 +954,9 @@ class VPInstruction : public VPRecipeWithIRFlags,
     // part if it is scalar. In the latter case, the recipe will be removed
     // during unrolling.
     ExtractPenultimateElement,
+    // Extracts a subvector from a vector (first operand) starting at a given
+    // offset (second operand).
+    ExtractSubvector,
----------------
david-arm wrote:

It would be good to add this to VPInstruction::computeCost to make sure the cost is properly represented in the VPlan, although I know that currently the only use case is during plan execution, after the cost model.

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


More information about the llvm-commits mailing list