[llvm] [VPlan] Move addExplicitVectorLength to tryToBuildVPlanWithVPRecipes (PR #166164)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 4 05:11:25 PST 2025


================
@@ -4118,6 +4118,11 @@ class LLVM_ABI_FOR_TEST VPRegionBlock : public VPBlockBase {
     return const_cast<VPRegionBlock *>(this)->getCanonicalIV();
   }
 
+  VPEVLBasedIVPHIRecipe *getEVLBasedIV() {
+    return dyn_cast<VPEVLBasedIVPHIRecipe>(
+        std::next(getCanonicalIV()->getIterator()));
+  }
+
----------------
fhahn wrote:

Not sure this should be exposed in VPRegionBlock for a single user.

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


More information about the llvm-commits mailing list