[llvm] [VPlan] Replace UnrollPart for VPScalarIVSteps with start index op (NFC) (PR #170906)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 20 07:31:45 PST 2026
================
@@ -3826,9 +3826,9 @@ class VPDerivedIVRecipe : public VPSingleDefRecipe {
};
/// A recipe for handling phi nodes of integer and floating-point inductions,
-/// producing their scalar values.
-class LLVM_ABI_FOR_TEST VPScalarIVStepsRecipe : public VPRecipeWithIRFlags,
- public VPUnrollPartAccessor<3> {
+/// producing their scalar values. Before unrolling the recipe has 3 operands:
+/// IV, step and VF. Unrolling adds an extra operand StartIndex.
----------------
ayalz wrote:
Agree that re-purposing operands best be avoided. Updating the symbolic loop-strip-mining-factor Plan.VF while retaining the concrete recipe-execution-factor State.VF intact, as done when narrowing interleave groups, may cause confusion and deserves more thought(*); mixing both in the same recipe may be even more confusing. Suggest to at-least provide clarifying comments for now.
(*) Perhaps considering/conveying number-of-elements as part of VPValue operand's type, complementing its per-element/scalar type, would help reason about VF in general; but all operands and result of VPScalarIVSteps recipes are scalars...
https://github.com/llvm/llvm-project/pull/170906
More information about the llvm-commits
mailing list