[llvm] [VPlan] Delay adding canonical IV increment. (PR #82270)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 5 15:00:26 PST 2025
================
@@ -10272,7 +10271,7 @@ preparePlanForEpilogueVectorLoop(VPlan &Plan, Loop *L,
isa<VPScalarCastRecipe>(U) ||
isa<VPDerivedIVRecipe>(U) ||
cast<VPInstruction>(U)->getOpcode() ==
- Instruction::Add;
+ VPInstruction::BranchOnCount;
}) &&
"the canonical IV should only be used by its increment or "
----------------
ayalz wrote:
```suggestion
"the canonical IV should only be used by its BranchOnCount or "
```
https://github.com/llvm/llvm-project/pull/82270
More information about the llvm-commits
mailing list