Fix the inliner so that the optsize function attribute don't alter the
authorPatrik Hägglund <patrik.h.hagglund@ericsson.com>
Wed, 23 May 2012 13:42:57 +0000 (13:42 +0000)
committerPatrik Hägglund <patrik.h.hagglund@ericsson.com>
Wed, 23 May 2012 13:42:57 +0000 (13:42 +0000)
commitab767213fdfc219384e26b8073783cb883974dcd
tree78c7545b2e79c553055dea6021f12d18471881f2
parent9ce6f6fe5e44a5bd4c4dcee660cddd197aec5307
Fix the inliner so that the optsize function attribute don't alter the
inline threshold if the global inline threshold is lower (as for -Oz).

Reviewed by Chandler Carruth and Bill Wendling.

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