[llvm][NFC] Add an explicit 'ComputeFullInlineCost' API
authorMircea Trofin <mtrofin@google.com>
Thu, 23 Apr 2020 17:04:48 +0000 (10:04 -0700)
committerMircea Trofin <mtrofin@google.com>
Mon, 27 Apr 2020 16:11:45 +0000 (09:11 -0700)
commit8a4013ed38c6eee730dd6781a7c3dfd2b39e7e80
treebde41f1c2b92992fa14817fad654f067714c489c
parent498795829ba6c72824dfa6e44e5a9ebc737f7f66
[llvm][NFC] Add an explicit 'ComputeFullInlineCost' API

Summary:
Added getInliningCostEstimate, which is essentially what getInlineCost
computes if passed default inlining params, and  non-null ORE or
InlineParams::ComputeFullInlineCost.

Reviewers: davidxl, eraman, jdoerfert

Subscribers: hiraditya, haicheng, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78730
llvm/include/llvm/Analysis/InlineCost.h
llvm/lib/Analysis/InlineCost.cpp