[llvm] [VPlan] Implement interleaving as VPlan-to-VPlan transform. (PR #95842)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 19 04:53:50 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");
----------------
fhahn wrote:
Done thanks!
https://github.com/llvm/llvm-project/pull/95842
More information about the llvm-commits
mailing list