Separate out the constant bonus from the size reduction metrics. Rework
authorEric Christopher <echristo@apple.com>
Wed, 26 Jan 2011 02:58:39 +0000 (02:58 +0000)
committerEric Christopher <echristo@apple.com>
Wed, 26 Jan 2011 02:58:39 +0000 (02:58 +0000)
commit5d83955b8c2bdca28d0a0c62a9d0f9bbd5a6d668
tree5da3ed3420490a80233182e7b3e1e2083db78a2d
parent717082b9bd634ea406ca63b3a9358ffd09091b9c
Separate out the constant bonus from the size reduction metrics. Rework
a few loops accordingly. Should be no functional change.

This is a step for more accurate cost/benefit analysis of devirt/inlining
bonuses.

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