Move per-function inline threshold calculation to a method.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 20 Jan 2010 17:51:28 +0000 (17:51 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 20 Jan 2010 17:51:28 +0000 (17:51 +0000)
commitf8526cb711ec96cd2d5aff30da57f65ae8e5b7b8
treea1685f66e8771db293312e810184dabcad6b99f8
parent32f6a8d923e70fc342a611a1446d3ea031d6afd2
Move per-function inline threshold calculation to a method.

No functional change except the forgotten test for
InlineLimit.getNumOccurrences() == 0 in the CurrentThreshold2 calculation.

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