[llvm] [VPlan] Omit zero add in VPWidenIntOrFpInductionRecipe (PR #119668)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 12 23:25:11 PST 2024


================
@@ -1576,10 +1576,10 @@ InstructionCost VPHeaderPHIRecipe::computeCost(ElementCount VF,
 }
 
 /// This function adds
-/// (StartIdx * Step, (StartIdx + 1) * Step, (StartIdx + 2) * Step, ...)
+/// (0 * Step, 1 * Step, 2 * Step, ...)
 /// to each vector element of Val. The sequence starts at StartIndex.
----------------
Mel-Chen wrote:

```suggestion
/// to each vector element of Val. The sequence starts at zero.
```

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


More information about the llvm-commits mailing list