From eabde0cf0798e36934ffd03b071f2bd490ac1f11 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 26 Jan 2011 19:40:31 +0000 Subject: 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 --- include/llvm/Analysis/InlineCost.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/llvm/Analysis/InlineCost.h') 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 CachedFunctionInfo; - unsigned CountBonusForConstant(Value *V); public: /// getInlineCost - The heuristic used to determine if we should inline the -- cgit v1.1