diff options
author | Eric Christopher <echristo@apple.com> | 2011-01-26 19:40:31 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-01-26 19:40:31 +0000 |
commit | eabde0cf0798e36934ffd03b071f2bd490ac1f11 (patch) | |
tree | da5342ba0acee27473edd631bb44bf15d6d1790d /include/llvm/Analysis/InlineCost.h | |
parent | a3722e67d99c8586dea6d5244d778aa0f484291b (diff) | |
download | external_llvm-eabde0cf0798e36934ffd03b071f2bd490ac1f11.zip external_llvm-eabde0cf0798e36934ffd03b071f2bd490ac1f11.tar.gz external_llvm-eabde0cf0798e36934ffd03b071f2bd490ac1f11.tar.bz2 |
Temporarily revert 124275 to see if it brings the dragonegg buildbot back.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124312 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, 3 insertions, 3 deletions
diff --git a/include/llvm/Analysis/InlineCost.h b/include/llvm/Analysis/InlineCost.h index e53d7f6..a138fc4 100644 --- a/include/llvm/Analysis/InlineCost.h +++ b/include/llvm/Analysis/InlineCost.h @@ -96,9 +96,10 @@ 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) {} }; @@ -124,7 +125,6 @@ namespace llvm { // the ValueMap will update itself when this happens. ValueMap<const Function *, FunctionInfo> CachedFunctionInfo; - unsigned CountBonusForConstant(Value *V); public: /// getInlineCost - The heuristic used to determine if we should inline the |