Try to keep the cached inliner costs around for a bit longer for big functions.
[oota-llvm.git] / lib / Transforms / IPO / InlineAlways.cpp
index f11ecae8dfc907f78540a0ee2445573b2b42abc2..bc8028c020a158f15e5bbffcb836ab2f8ecb675e 100644 (file)
@@ -45,7 +45,10 @@ namespace {
       return CA.getInlineFudgeFactor(CS);
     }
     void resetCachedCostInfo(Function *Caller) {
-      return CA.resetCachedCostInfo(Caller);
+      CA.resetCachedCostInfo(Caller);
+    }
+    void growCachedCostInfo(Function* Caller, Function* Callee) {
+      CA.growCachedCostInfo(Caller, Callee);
     }
     virtual bool doFinalization(CallGraph &CG) { 
       return removeDeadFunctions(CG, &NeverInline);