[PATCH] D50573: [LegacyPassManager] Remove analysis P from AnUsageMap before deleting it in schedulePass.

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 20 13:58:18 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL340210: [LegacyPassManager] Remove analysis P from AnUsageMap before deleting it in… (authored by ctopper, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D50573?vs=160145&id=161559#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D50573

Files:
  llvm/trunk/lib/IR/LegacyPassManager.cpp


Index: llvm/trunk/lib/IR/LegacyPassManager.cpp
===================================================================
--- llvm/trunk/lib/IR/LegacyPassManager.cpp
+++ llvm/trunk/lib/IR/LegacyPassManager.cpp
@@ -677,6 +677,8 @@
   // available at this point.
   const PassInfo *PI = findAnalysisPassInfo(P->getPassID());
   if (PI && PI->isAnalysis() && findAnalysisPass(P->getPassID())) {
+    // Remove any cached AnalysisUsage information.
+    AnUsageMap.erase(P);
     delete P;
     return;
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50573.161559.patch
Type: text/x-patch
Size: 497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180820/06c5cb23/attachment.bin>


More information about the llvm-commits mailing list