[llvm] [VPlan] Implement interleaving as VPlan-to-VPlan transform. (PR #95842)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 18 13:11:16 PDT 2024
================
@@ -492,12 +498,11 @@ Value *VPInstruction::generatePerPart(VPTransformState &State, unsigned Part) {
return EVL;
}
case VPInstruction::CanonicalIVIncrementForPart: {
+ unsigned Part = getUnrollPartOperand();
auto *IV = State.get(getOperand(0), VPIteration(0, 0));
- if (Part == 0)
- return IV;
-
- // The canonical IV is incremented by the vectorization factor (num of SIMD
- // elements) times the unroll part.
+ assert(Part != 0 && "Must have a part");
----------------
ayalz wrote:
```suggestion
assert(Part != 0 && "Must have a positive part");
```
https://github.com/llvm/llvm-project/pull/95842
More information about the llvm-commits
mailing list