[llvm] [VPlan] Convert EVL loops to variable-length stepping after dissolution (PR #147222)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 17 09:16:24 PDT 2025


================
@@ -2357,6 +2357,64 @@ bool VPlanTransforms::tryAddExplicitVectorLength(
   return true;
 }
 
+void VPlanTransforms::simplifyEVLIVs(VPlan &Plan) {
+  auto ConvertEVLPhi = [](VPlan &Plan, VPBasicBlock *Entry,
+                          VPEVLBasedIVPHIRecipe *EVLPhi) {
----------------
lukel97 wrote:

I think we can remove Entry and just use `EVLPhi->getParent()`?

```suggestion
  auto ConvertEVLPhi = [](VPlan &Plan, VPEVLBasedIVPHIRecipe *EVLPhi) {
```

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


More information about the llvm-commits mailing list