[llvm] [VPlan] Replicate VPScalarIVStepsRecipe by VF outside replicate regions. (PR #170053)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 03:32:14 PST 2026
================
@@ -150,7 +148,7 @@ void UnrollState::addStartIndexForScalarSteps(VPScalarIVStepsRecipe *Steps,
StartIndex = Builder.createScalarCast(Instruction::SIToFP, StartIndex,
----------------
ayalz wrote:
Independent thoughts, worth documenting what can and should be said about the StartIndex VPValue operand:
- a compile-time constant value for fixed VF
- a runtime constant value for scalable VF
- has the same type as base IV - the first operand of VPScalarIVStepsRecipe
- computing StartIndex may unsigned wrap, to fit the type of base IV
- can be either fp or unsigned integer
?
https://github.com/llvm/llvm-project/pull/170053
More information about the llvm-commits
mailing list