Pass GetAssumptionCache to InlineFunctionInfo constructor
authorEaswaran Raman <eraman@google.com>
Thu, 22 Dec 2016 01:07:01 +0000 (01:07 +0000)
committerEaswaran Raman <eraman@google.com>
Thu, 22 Dec 2016 01:07:01 +0000 (01:07 +0000)
Differential revision: https://reviews.llvm.org/D28038

llvm-svn: 290295

llvm/lib/Transforms/IPO/Inliner.cpp

index baef308..7b2db94 100644 (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();