[llvm] r365345 - Add, and infer, a nofree function attribute
Brian Homerding via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 09:33:32 PDT 2019
Author: homerdin
Date: Mon Jul 8 09:33:32 2019
New Revision: 365345
URL: http://llvm.org/viewvc/llvm-project?rev=365345&view=rev
Log:
Add, and infer, a nofree function attribute
Removing dead code leftover from refactor.
Reviewers: jdoerfert
Differential Revision: https://reviews.llvm.org/D49165
Modified:
llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp
Modified: llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp?rev=365345&r1=365344&r2=365345&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp Mon Jul 8 09:33:32 2019
@@ -1402,11 +1402,6 @@ PreservedAnalyses PostOrderFunctionAttrs
FunctionAnalysisManager &FAM =
AM.getResult<FunctionAnalysisManagerCGSCCProxy>(C, CG).getManager();
- const ModuleAnalysisManager &MAM =
- AM.getResult<ModuleAnalysisManagerCGSCCProxy>(C, CG).getManager();
- assert(C.size() > 0 && "Cannot handle an empty SCC!");
- Module &M = *C.begin()->getFunction().getParent();
-
// We pass a lambda into functions to wire them up to the analysis manager
// for getting function analyses.
auto AARGetter = [&](Function &F) -> AAResults & {
More information about the llvm-commits
mailing list