[llvm] [VPlan] Make canonical IV part of the region (PR #156262)
    Florian Hahn via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Oct 21 13:25:42 PDT 2025
    
    
  
================
@@ -1224,6 +1259,11 @@ VPlan *VPlan::duplicate() {
   // else NewTripCount will be created and inserted into Old2NewVPValues when
   // TripCount is cloned. In any case NewPlan->TripCount is updated below.
 
+  if (auto *LoopRegion = getVectorLoopRegion()) {
+    Old2NewVPValues[LoopRegion->getCanonicalIV()] =
+        NewPlan->getVectorLoopRegion()->getCanonicalIV();
+  }
----------------
fhahn wrote:
Done thanks
https://github.com/llvm/llvm-project/pull/156262
    
    
More information about the llvm-commits
mailing list