[PATCH] D14309: Use updated threshold for indirect call bonus
Easwaran Raman via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 7 13:24:33 PST 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL254945: Use updated threshold for indirect call bonus (authored by eraman).
Changed prior to commit:
http://reviews.llvm.org/D14309?vs=39127&id=42098#toc
Repository:
rL LLVM
http://reviews.llvm.org/D14309
Files:
llvm/trunk/lib/Analysis/InlineCost.cpp
Index: llvm/trunk/lib/Analysis/InlineCost.cpp
===================================================================
--- llvm/trunk/lib/Analysis/InlineCost.cpp
+++ llvm/trunk/lib/Analysis/InlineCost.cpp
@@ -834,8 +834,8 @@
CallAnalyzer CA(TTI, ACT, *F, InlineConstants::IndirectCallThreshold, CS);
if (CA.analyzeCall(CS)) {
// We were able to inline the indirect call! Subtract the cost from the
- // bonus we want to apply, but don't go below zero.
- Cost -= std::max(0, InlineConstants::IndirectCallThreshold - CA.getCost());
+ // threshold to get the bonus we want to apply, but don't go below zero.
+ Cost -= std::max(0, CA.getThreshold() - CA.getCost());
}
return Base::visitCallSite(CS);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14309.42098.patch
Type: text/x-patch
Size: 722 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151207/8b5cf2b7/attachment.bin>
More information about the llvm-commits
mailing list