OSDN Git Service

[TTI] Add getInliningThresholdMultiplier.
authorJustin Lebar <jlebar@google.com>
Fri, 15 Apr 2016 01:38:48 +0000 (01:38 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 15 Apr 2016 01:38:48 +0000 (01:38 +0000)
commitdbebf40a3b70fffe43fed42d98d5cd40480c379a
tree6fc7ac70bd255fa026de79785fa44e895b17293a
parentddeb008196e0c4c1466031606253a61d3ead3ce7
[TTI] Add getInliningThresholdMultiplier.

Summary:
InlineCost's threshold is multiplied by this value.  This lets us adjust
the inlining threshold up or down on a per-target basis.  For example,
we might want to increase the threshold on targets where calls are
unusually expensive.

Reviewers: chandlerc

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266405 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetTransformInfo.h
include/llvm/Analysis/TargetTransformInfoImpl.h
include/llvm/CodeGen/BasicTTIImpl.h
lib/Analysis/InlineCost.cpp
lib/Analysis/TargetTransformInfo.cpp