[PATCH] D22120: Move inline threshold related flags to InlineSimple.cpp

Easwaran Raman via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 29 15:18:25 PDT 2016


eraman marked 3 inline comments as done.

================
Comment at: include/llvm/Analysis/InlineCost.h:132
@@ -112,3 +131,3 @@
 /// inlining the callsite. It is an expensive, heavyweight call.
 InlineCost getInlineCost(CallSite CS, int DefaultThreshold,
                          TargetTransformInfo &CalleeTTI,
----------------
davidxl wrote:
> Should defaultThreshold be wrapped in inline-params too? 
> 
> Edit: probably not. The defaultThreshold here means many different things (opt level specific default when default-threshold option is not specified, threshold passed in API, or indirect call threshold etc.) -- I hope this can be cleaned up at some point:  cost analysis should just look at the InlineParams to make decisions.
I actually think it should be moved to InlineParams. It is computed by different means, but the meaning is the same - use this threshold in the absence of any other overrides. If you agree I'll move this as well. 


https://reviews.llvm.org/D22120





More information about the llvm-commits mailing list