[Inliner] Do not mix callsite and callee hotness based updates.
authorEaswaran Raman <eraman@google.com>
Tue, 16 May 2017 21:18:09 +0000 (21:18 +0000)
committerEaswaran Raman <eraman@google.com>
Tue, 16 May 2017 21:18:09 +0000 (21:18 +0000)
commit3cd1479c3f670c2d4803edc13a1caa094e6a50dc
tree06691a23bed2d49bc3702100aa0587f1a00db279
parent0fbbef43e0d8dcc6097e755f6fb5954492f1c517
[Inliner] Do not mix callsite and callee hotness based updates.

Update threshold based on callee's hotness only when BFI is not available.
Otherwise use only callsite's hotness. This makes it easier to reason about
hotness related threshold updates.

Differential revision: https://reviews.llvm.org/D33157

llvm-svn: 303210
llvm/lib/Analysis/InlineCost.cpp
llvm/test/Transforms/Inline/inline-hot-callee.ll