mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-22 05:51:42 +00:00
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:
parent
f35020be62
commit
94201fb8e7
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user