Temporarily revert 124275 to see if it brings the dragonegg buildbot back.
[oota-llvm.git] / include / llvm / Analysis / InlineCost.h
index e53d7f65282e7db14b1cce2f81f8b5abe6844110..a138fc41e95ebb07b8c18a1e8fcc6dd4d4c350f1 100644 (file)
@@ -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