[llvm] [VPlan] Make canonical IV part of the region (PR #156262)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 15 07:00:20 PST 2026


================
@@ -1366,6 +1420,8 @@ void VPlanPrinter::dumpRegion(const VPRegionBlock *Region) {
 /// Returns true if there is a vector loop region and \p VPV is defined in a
 /// loop region.
 static bool isDefinedInsideLoopRegions(const VPValue *VPV) {
+  if (isa<VPRegionValue>(VPV))
+    return true;
   const VPRecipeBase *DefR = VPV->getDefiningRecipe();
   return DefR && (!DefR->getParent()->getPlan()->getVectorLoopRegion() ||
----------------
fhahn wrote:

Yes, replicate regions unfortunately are not yet explicitly unrolled, but there's https://github.com/llvm/llvm-project/pull/170212 to do so.

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


More information about the llvm-commits mailing list