[llvm] [VPlan] Delay adding canonical IV increment. (PR #82270)

via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 11 07:18:21 PST 2024


================
@@ -8833,29 +8844,25 @@ void LoopVectorizationPlanner::buildVPlansWithVPRecipes(ElementCount MinVF,
   }
 }
 
-// Add the necessary canonical IV and branch recipes required to control the
-// loop.
-static void addCanonicalIVRecipes(VPlan &Plan, Type *IdxTy, bool HasNUW,
-                                  DebugLoc DL) {
+// Add the required canonical IV.
----------------
ayalz wrote:

```suggestion
// Add the required canonical IV along with its loop branch, but w/o its increment - which is introduced later.
```

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


More information about the llvm-commits mailing list