[llvm] [VPlan] Add VPInstruction::StepVector and use it in VPWidenIntOrFpInductionRecipe (PR #129508)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 28 06:12:52 PDT 2025
================
@@ -1902,15 +1911,6 @@ static Value *getStepVector(Value *Val, Value *Step,
SmallVector<Constant *, 8> Indices;
- // Create a vector of consecutive numbers from zero to VF.
- VectorType *InitVecValVTy = ValVTy;
- if (STy->isFloatingPointTy()) {
- Type *InitVecValSTy =
- IntegerType::get(STy->getContext(), STy->getScalarSizeInBits());
- InitVecValVTy = VectorType::get(InitVecValSTy, VLen);
----------------
david-arm wrote:
Perhaps we should assert that `InitVec` is the type we expect, i.e. it must have the same type as `Step`
https://github.com/llvm/llvm-project/pull/129508
More information about the llvm-commits
mailing list