Inliner uses a smaller inline threshold for callees with cold attribute.
authorManman Ren <manman.ren@gmail.com>
Wed, 5 Feb 2014 22:53:44 +0000 (22:53 +0000)
committerManman Ren <manman.ren@gmail.com>
Wed, 5 Feb 2014 22:53:44 +0000 (22:53 +0000)
commitdf7da79db6879032da83de83a90f981cacdb5f1a
treea1262d6b26806c03345754bba4861e3f9b250c98
parent8147752976bda4499863c3db9feee760cf0b9015
Inliner uses a smaller inline threshold for callees with cold attribute.

Added command line option inlinecold-threshold to set threshold for inlining
functions with cold attribute. Listen to the cold attribute when it would
decrease the inline threshold.

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