Do not directly use inline threshold cl options in cost analysis.
authorEaswaran Raman <eraman@google.com>
Wed, 10 Aug 2016 00:48:04 +0000 (00:48 +0000)
committerEaswaran Raman <eraman@google.com>
Wed, 10 Aug 2016 00:48:04 +0000 (00:48 +0000)
commit1c57cc2b680a2d77bb63b554b7a7d832682e883f
tree4f2f18bcf5e3f37ca7bc4e2cc2af084076e3a33c
parent21db1ec221713f0be0a1de62acab96b24ea7e8a4
Do not directly use inline threshold cl options in cost analysis.

This adds an InlineParams struct which is populated from the command line options by getInlineParams and passed to getInlineCost for the call analyzer to use.

Differential revision: https://reviews.llvm.org/D22120

llvm-svn: 278189
llvm/include/llvm/Analysis/InlineCost.h
llvm/lib/Analysis/InlineCost.cpp
llvm/lib/Transforms/IPO/InlineSimple.cpp