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

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 2 00:48:04 PDT 2025


================
@@ -499,6 +494,10 @@ SmallVector<VPRegisterUsage, 8> llvm::calculateRegisterUsageForPlan(
     return TTICapture.getRegUsageForType(VectorType::get(Ty, VF));
   };
 
+  if (auto *CanIV = LoopRegion->getCanonicalIV())
----------------
ayalz wrote:

When/Can CanIV be null / LoopRegion be a replicating one?

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


More information about the llvm-commits mailing list