Rotate two of the functions used to count bonuses for the inline cost
authorChandler Carruth <chandlerc@gmail.com>
Thu, 8 Mar 2012 02:04:19 +0000 (02:04 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 8 Mar 2012 02:04:19 +0000 (02:04 +0000)
commit6f130bf368ab082ab87bafaee9bf4e1a78acc669
tree8351472df6ab0cc776df4a2e0326c8494512bbf5
parent5fdf50065d1b481aed3222477f61f1075459210d
Rotate two of the functions used to count bonuses for the inline cost
analysis to be methods on the cost analysis's function info object
instead of the code metrics object. These really are just users of the
code metrics, they're building the information for the function's
analysis.

This is the first step of growing the amount of information we collect
about a function in order to cope with pair-wise simplifications due to
allocas.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152283 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/CodeMetrics.h
include/llvm/Analysis/InlineCost.h
lib/Analysis/InlineCost.cpp