Clean up handling of always-inline functions in the inliner.
authorBob Wilson <bob.wilson@apple.com>
Mon, 19 Nov 2012 07:04:35 +0000 (07:04 +0000)
committerBob Wilson <bob.wilson@apple.com>
Mon, 19 Nov 2012 07:04:35 +0000 (07:04 +0000)
commita5b0dc888469fb60f5c8b683c6bbd670ce9e7462
treee788c9464846681a4d568add57edff6d72694ed3
parent266802d25640d58577d41b42fb0e134c0c76c341
Clean up handling of always-inline functions in the inliner.

This patch moves the isInlineViable function from the InlineAlways pass into
the InlineCostAnalyzer and then changes the InlineCost computation to use that
simple check for always-inline functions. All the special-case checks for
AlwaysInline in the CallAnalyzer can then go away.

llvm-svn: 168300
llvm/include/llvm/Analysis/InlineCost.h
llvm/lib/Analysis/InlineCost.cpp
llvm/lib/Transforms/IPO/InlineAlways.cpp