Initial commit for the rewrite of the inline cost analysis to operate
[oota-llvm.git] / lib / Transforms / IPO / InlineAlways.cpp
index 3c7fac6cc1047f582c9db673a16f8b52098da3e7..ef7e45235e3141d4899c573445134d59ed7c622f 100644 (file)
@@ -59,10 +59,7 @@ namespace {
       // We still have to check the inline cost in case there are reasons to
       // not inline which trump the always-inline attribute such as setjmp and
       // indirectbr.
-      return CA.getInlineCost(CS);
-    }
-    float getInlineFudgeFactor(CallSite CS) {
-      return CA.getInlineFudgeFactor(CS);
+      return CA.getInlineCost(CS, getInlineThreshold(CS));
     }
     void resetCachedCostInfo(Function *Caller) {
       CA.resetCachedCostInfo(Caller);