[llvm-dev] With -flto, is manual inline unnecessary?
Craig Topper via llvm-dev
llvm-dev at lists.llvm.org
Fri Jan 18 22:51:46 PST 2019
The inline keyword is a hint. The inliner calculates the cost of inlining a
function using various heuristics. If the cost is too high it won't be
inlined. The inline keyword increases the threshold that is considered too
On Fri, Jan 18, 2019 at 10:42 PM Peng Yu via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> With LTO, it seems that compilers should have the information to
> decide whether to inline a function or not. In this case, is it
> unnecessary to specify functions as inline in C/C++ code?
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev