diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/InlineAlways.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/InlineAlways.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/InlineAlways.cpp b/llvm/lib/Transforms/IPO/InlineAlways.cpp index 3c7fac6cc10..ef7e45235e3 100644 --- a/llvm/lib/Transforms/IPO/InlineAlways.cpp +++ b/llvm/lib/Transforms/IPO/InlineAlways.cpp @@ -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); |