[llvm] r280008 - Fix a thinko in r278189.
Easwaran Raman via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 29 13:45:51 PDT 2016
Author: eraman
Date: Mon Aug 29 15:45:51 2016
New Revision: 280008
URL: http://llvm.org/viewvc/llvm-project?rev=280008&view=rev
Log:
Fix a thinko in r278189.
Modified:
llvm/trunk/lib/Analysis/InlineCost.cpp
Modified: llvm/trunk/lib/Analysis/InlineCost.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/InlineCost.cpp?rev=280008&r1=280007&r2=280008&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/InlineCost.cpp (original)
+++ llvm/trunk/lib/Analysis/InlineCost.cpp Mon Aug 29 15:45:51 2016
@@ -962,7 +962,7 @@ bool CallAnalyzer::visitCallSite(CallSit
// out. Pretend to inline the function, with a custom threshold.
auto IndirectCallParams = Params;
IndirectCallParams.DefaultThreshold = InlineConstants::IndirectCallThreshold;
- CallAnalyzer CA(TTI, GetAssumptionCache, PSI, *F, CS, Params);
+ CallAnalyzer CA(TTI, GetAssumptionCache, PSI, *F, CS, IndirectCallParams);
if (CA.analyzeCall(CS)) {
// We were able to inline the indirect call! Subtract the cost from the
// threshold to get the bonus we want to apply, but don't go below zero.
More information about the llvm-commits
mailing list