[llvm] [LV] Check if the VF is scalar by VFRange instead of VPlan in `handleUncountableEarlyExit` NFC. (PR #135294)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 11 00:57:43 PDT 2025


================
@@ -174,7 +175,8 @@ struct VPlanTransforms {
   static void handleUncountableEarlyExit(VPlan &Plan, ScalarEvolution &SE,
                                          Loop *OrigLoop,
                                          BasicBlock *UncountableExitingBlock,
-                                         VPRecipeBuilder &RecipeBuilder);
+                                         VPRecipeBuilder &RecipeBuilder,
+                                         VFRange &Range);
----------------
sdesmalen-arm wrote:

nit: Range is not modified by this function, so better to make it const.
```suggestion
                                         const VFRange &Range);
```

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


More information about the llvm-commits mailing list