Pass GetAssumptionCache to InlineFunctionInfo constructor

Differential revision: https://reviews.llvm.org/D28038


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290295 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Easwaran Raman 2016-12-22 01:07:01 +00:00
parent f35020be62
commit 94201fb8e7

View File

@ -790,7 +790,7 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
// Setup the data structure used to plumb customization into the
// `InlineFunction` routine.
InlineFunctionInfo IFI(/*cg=*/nullptr);
InlineFunctionInfo IFI(/*cg=*/nullptr, &GetAssumptionCache);
auto GetInlineCost = [&](CallSite CS) {
Function &Callee = *CS.getCalledFunction();