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

Easwaran Raman via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 16:30:53 PDT 2016

eraman created this revision.
eraman added reviewers: chandlerc, davidxl.
eraman added subscribers: xur, llvm-commits.

In http://reviews.llvm.org/D21405, Rong is adding a pre-inliner pass which uses the SimpleInliner pass with lower thresholds. If that is added, the use of -inline[.*]-threshold options will affect the preinliner as well which is not the intended behavior. This patch moves the threshold flags out of InlineCost.cpp and passes a set of knobs (based on the flags) to the getInlineCost method. This would allow the pre-inliner to ignore the threshold related flags.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22120.63157.patch
Type: text/x-patch
Size: 16079 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160707/010c664b/attachment.bin>

More information about the llvm-commits mailing list