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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 5 13:12:09 PDT 2025


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

LoopRegion must always have one (and be not replicating as consequence), removed the check, thanks

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


More information about the llvm-commits mailing list