[PATCH] D46833: [VPlan] Clean up VPValues for external definition in destructor.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 14 08:03:56 PDT 2018


fhahn created this revision.
fhahn added reviewers: hsaito, dcaballe, rengolin.
Herald added subscribers: tschuett, bollu.

https://reviews.llvm.org/D46833

Files:
  lib/Transforms/Vectorize/VPlan.h


Index: lib/Transforms/Vectorize/VPlan.h
===================================================================
--- lib/Transforms/Vectorize/VPlan.h
+++ lib/Transforms/Vectorize/VPlan.h
@@ -1060,6 +1060,8 @@
       VPBlockBase::deleteCFG(Entry);
     for (auto &MapEntry : Value2VPValue)
       delete MapEntry.second;
+    for (VPValue *Def: VPExternalDefs)
+      delete Def;
   }
 
   /// Generate the IR code for this VPlan.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46833.146613.patch
Type: text/x-patch
Size: 425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180514/6a21976d/attachment.bin>


More information about the llvm-commits mailing list