[llvm] [VPlan] Manage created blocks directly in VPlan. (NFC) (PR #120918)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 29 13:12:29 PST 2024


================
@@ -1257,9 +1263,24 @@ VPlan *VPlan::duplicate() {
   assert(Old2NewVPValues.contains(TripCount) &&
          "TripCount must have been added to Old2NewVPValues");
   NewPlan->TripCount = Old2NewVPValues[TripCount];
+
+  // Transfer cloned blocks to new VPlan.
+  for (unsigned I : seq<unsigned>(CreatedBlockSize, CreatedBlocks.size()))
+    NewPlan->CreatedBlocks.push_back(CreatedBlocks[I]);
----------------
fhahn wrote:

Done thanks

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


More information about the llvm-commits mailing list