Determine callee's hotness and adjust threshold based on that. NFC.
authorEaswaran Raman <eraman@google.com>
Tue, 22 Dec 2015 00:32:35 +0000 (00:32 +0000)
committerEaswaran Raman <eraman@google.com>
Tue, 22 Dec 2015 00:32:35 +0000 (00:32 +0000)
commit6db6cfa92b7232615fc76d201a309c84378ea1a1
tree33d95888bc2a0bb33bf2e22a923346dc363204fd
parent776f33aede0eeb72764d19ff1c9b3c65e42c6efa
Determine callee's hotness and adjust threshold based on that. NFC.

This uses the same criteria used in CFE's CodeGenPGO to identify hot and cold
callees and uses values of inlinehint-threshold and inlinecold-threshold
respectively as the thresholds for such callees.

Differential Revision: http://reviews.llvm.org/D15245

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