[NFC][InlineCost] Factor cost modeling out of CallAnalyzer traversal.
authorMircea Trofin <mtrofin@google.com>
Thu, 9 Jan 2020 01:11:23 +0000 (17:11 -0800)
committerMircea Trofin <mtrofin@google.com>
Thu, 9 Jan 2020 01:12:36 +0000 (17:12 -0800)
commit76aab66d34446ccf764cf8127b73e1517df75fb4
treec21701fe4ccb3e1dfbafe03673c5049db098dec9
parentff0311c4b3b9dce9d25d08e38aa163682b155513
[NFC][InlineCost] Factor cost modeling out of CallAnalyzer traversal.

Summary:
The goal is to simplify experimentation on the cost model. Today,
CallAnalyzer decides 2 things: legality, and benefit. The refactoring
keeps legality assessment in CallAnalyzer, and factors benefit
evaluation out, as an extension.

Reviewers: davidxl, eraman

Subscribers: kamleshbhalui, fedor.sergeev, hiraditya, baloghadamsoftware, haicheng, a.sidorin, Szelethus, donat.nagy, dkrupp, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D71733
llvm/lib/Analysis/InlineCost.cpp