Take into account minimize size attribute in the inliner.
authorQuentin Colombet <qcolombet@apple.com>
Thu, 13 Dec 2012 01:05:25 +0000 (01:05 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 13 Dec 2012 01:05:25 +0000 (01:05 +0000)
commitfcc934322bc6e0b89df8fbcdde59145f5af1179a
tree9275521153fe03e9dd79307e976fe9afb85f9a79
parent4397294e78dbfda8e812a63adaf6f27fca7868a3
Take into account minimize size attribute in the inliner.

Better controls the inlining of functions when the caller function has MinSize attribute.
Basically, when the caller function has this attribute, we do not "force" the inlining
of callee functions carrying the InlineHint attribute (i.e., functions defined with
inline keyword)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170065 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/Inliner.cpp
test/Transforms/Inline/inline_minisize.ll [new file with mode: 0644]