Improve the accuracy of the inlining heuristic looking for the
authorDale Johannesen <dalej@apple.com>
Tue, 4 Jan 2011 19:01:54 +0000 (19:01 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 4 Jan 2011 19:01:54 +0000 (19:01 +0000)
commitc84e3c0c03a0dab7aea7047e7b8e38051542f7e4
tree8b16dd0a28251072cdea1cc2186ce0fd4b13af33
parentc2146a6abc6366ed6171c555d771bc6cb657f31a
Improve the accuracy of the inlining heuristic looking for the
case where a static caller is itself inlined everywhere else, and
thus may go away if it doesn't get too big due to inlining other
things into it.  If there are references to the caller other than
calls, it will not be removed; account for this.
This results in same-day completion of the case in PR8853.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122821 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/Inliner.cpp