diff options
author | Kenneth Uildriks <kennethuil@gmail.com> | 2010-10-08 13:57:31 +0000 |
---|---|---|
committer | Kenneth Uildriks <kennethuil@gmail.com> | 2010-10-08 13:57:31 +0000 |
commit | ca52c8ba12285c0e86f1b6d3b354342c59e2a416 (patch) | |
tree | f52b5fe896d2b417ef41ff8d6917999c112afe18 /include/llvm/Analysis/InlineCost.h | |
parent | d7b8d91d4a2a284bbe9ef6f32b3c25daa7ea0513 (diff) | |
download | llvm-ca52c8ba12285c0e86f1b6d3b354342c59e2a416.tar.gz llvm-ca52c8ba12285c0e86f1b6d3b354342c59e2a416.tar.bz2 llvm-ca52c8ba12285c0e86f1b6d3b354342c59e2a416.tar.xz |
Start separating out code metrics into code size metrics and code performance metrics. Partial Specialization will apply the former to function specializations, and the latter to all callsites that can use a specialization, in order to decide whether to create a specialization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116057 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/InlineCost.h')
-rw-r--r-- | include/llvm/Analysis/InlineCost.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Analysis/InlineCost.h b/include/llvm/Analysis/InlineCost.h index b3b93950d4..9963ba44d0 100644 --- a/include/llvm/Analysis/InlineCost.h +++ b/include/llvm/Analysis/InlineCost.h @@ -96,9 +96,11 @@ namespace llvm { public: unsigned ConstantWeight; unsigned AllocaWeight; + unsigned ConstantBonus; - ArgInfo(unsigned CWeight, unsigned AWeight) - : ConstantWeight(CWeight), AllocaWeight(AWeight) {} + ArgInfo(unsigned CWeight, unsigned AWeight, unsigned CBonus) + : ConstantWeight(CWeight), AllocaWeight(AWeight), ConstantBonus(CBonus) + {} }; struct FunctionInfo { |