[llvm][NFC] Inliner: factor cost and reporting out of inlining process
authorMircea Trofin <mtrofin@google.com>
Fri, 1 May 2020 20:27:43 +0000 (13:27 -0700)
committerMircea Trofin <mtrofin@google.com>
Sun, 3 May 2020 17:38:28 +0000 (10:38 -0700)
commitbec4ab95a4b7ed2a875af8a56189784d37a4ca12
tree0a22ec1eea5ffc27ec2d42025247050ae41e9340
parentbbdfcf8f6953b5ce065789447576448599e6aba0
[llvm][NFC] Inliner: factor cost and reporting out of inlining process

Summary:
This factors cost and reporting out of the inlining workflow, thus
making it easier to reuse when driving inlining from the upcoming
InliningAdvisor.

Depends on: D79215

Reviewers: davidxl, echristo

Subscribers: eraman, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D79275
llvm/lib/Transforms/IPO/Inliner.cpp