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

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 30 04:20:27 PST 2024


================
@@ -3812,6 +3781,10 @@ class VPlan {
   /// been modeled in VPlan directly.
   DenseMap<const SCEV *, VPValue *> SCEVToExpansion;
 
+  /// Blocks allocated and owned by the VPlan. They will be deleted once the
+  /// VPlan is destroyed.
+  SmallVector<VPBlockBase *> CreatedBlocks;
+
----------------
ayalz wrote:

nit: perhaps better positioned next to VPLiveInsToFree above.

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


More information about the llvm-commits mailing list