[llvm] [VPlan] Add VPlan-based addMinIterCheck, replace ILV for non-epilogue. (PR #153643)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 23 04:32:02 PDT 2025


================
@@ -559,6 +563,11 @@ class LoopVectorizationPlanner {
   /// Emit remarks for recipes with invalid costs in the available VPlans.
   void emitInvalidCostRemarks(OptimizationRemarkEmitter *ORE);
 
+  /// Create a check to \p Plan to see if the vector loop should be executed
+  /// based on its trip count.
+  void addMinimumIterationCheck(VPlan &Plan, ElementCount VF, unsigned UF,
----------------
ayalz wrote:

```suggestion
  void addTripCountCheck(VPlan &Plan, ElementCount VF, unsigned UF,
```
Renaming can be done separately to simplify the refactoring.

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


More information about the llvm-commits mailing list