[llvm][NFC] Cache FAM in InlineAdvisor
authorMircea Trofin <mtrofin@google.com>
Thu, 21 May 2020 15:40:49 +0000 (08:40 -0700)
committerMircea Trofin <mtrofin@google.com>
Mon, 1 Jun 2020 20:02:34 +0000 (13:02 -0700)
commit999ea25a9eeab72f95acaa7f753f4f3a7ac450b3
tree639b357a3beb2c872dd226494e9ee2314dcd3b33
parenta05f1e5ae4e0d0fc789a4caeff108fe4a50dc652
[llvm][NFC] Cache FAM in InlineAdvisor

Summary:
This simplifies the interface by storing the function analysis manager
with the InlineAdvisor, and, thus, not requiring it be passed each time
we inquire for an advice.

Reviewers: davidxl, asbirlea

Subscribers: eraman, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80405
llvm/include/llvm/Analysis/InlineAdvisor.h
llvm/include/llvm/Transforms/IPO/Inliner.h
llvm/lib/Analysis/InlineAdvisor.cpp
llvm/lib/Transforms/IPO/Inliner.cpp