[PATCH] D113032: [ArgPromo] Preserve FunctionAnalysisManagerCGSCCProxy
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 3 15:00:27 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG88052fc3624a: [ArgPromo] Preserve FunctionAnalysisManagerCGSCCProxy (authored by aeubanks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113032/new/
https://reviews.llvm.org/D113032
Files:
llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
Index: llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
===================================================================
--- llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -1051,7 +1051,10 @@
if (!Changed)
return PreservedAnalyses::all();
- return PreservedAnalyses::none();
+ PreservedAnalyses PA;
+ // We've cleared out analyses for deleted functions.
+ PA.preserve<FunctionAnalysisManagerCGSCCProxy>();
+ return PA;
}
namespace {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113032.384594.patch
Type: text/x-patch
Size: 504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211103/81949499/attachment.bin>
More information about the llvm-commits
mailing list