summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorEaswaran Raman <eraman@google.com>2017-07-28 21:47:36 +0000
committerEaswaran Raman <eraman@google.com>2017-07-28 21:47:36 +0000
commit51b809bf2f6e81be5d2390acaee09cbe1e26949c (patch)
tree1c88273f523ecb1a3c4a72d67add5b6c3993a049 /llvm/lib/Target
parent3bcad2b2e671e3ef948a4d537143274ae1a89609 (diff)
downloadbcm5719-llvm-51b809bf2f6e81be5d2390acaee09cbe1e26949c.tar.gz
bcm5719-llvm-51b809bf2f6e81be5d2390acaee09cbe1e26949c.zip
[Inliner] Do not apply any bonus for cold callsites.
Summary: Inlining threshold is increased by application of bonuses when the callee has a single reachable basic block or is rich in vector instructions. Similarly, inlining cost is reduced by applying a large bonus when the last call to a static function is considered for inlining. This patch disables the application of these bonuses when the callsite or the callee is cold. The intention here is to prevent a large cold callsite from being inlined to a non-cold caller that could prevent the caller from being inlined. This is especially important when the cold callsite is a last call to a static since the associated bonus is very high. Reviewers: chandlerc, davidxl Subscribers: danielcdh, llvm-commits Differential Revision: https://reviews.llvm.org/D35823 llvm-svn: 309441
Diffstat (limited to 'llvm/lib/Target')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud