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

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 24 11:05:28 PST 2024


================
@@ -1262,9 +1268,23 @@ VPlan *VPlan::duplicate() {
   assert(Old2NewVPValues.contains(TripCount) &&
          "TripCount must have been added to Old2NewVPValues");
   NewPlan->TripCount = Old2NewVPValues[TripCount];
+
+  for (unsigned I = CreatedBlockSize; I != CreatedBlocks.size(); ++I)
----------------
alexey-bataev wrote:

`for (unsigned I : seq<unsigned>(CreatedBlockSize, CreatedBlocks.size()))`

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


More information about the llvm-commits mailing list