[LLVMdev] inlining hint

Devang Patel devang.patel at gmail.com
Wed Aug 26 14:50:50 PDT 2009


On Wed, Aug 26, 2009 at 1:09 PM, Chris Lattner<clattner at apple.com> wrote:

> I know/hope that the proposal isn't for the inlinehint to be a synonym for
> "force inline", it would just raise the threshold to increase the likeliness
> that it would be inlined.

One alternative is to give the functions with hint first chance but
not change the threshold. Inliner works in two phase. In first phase,
only use function with inlinehint as candidates.

>The question is whether "something being c++
> inline" in any way is really trustworthy, and if so, whether we should look
> at syntactic vs semantic inline.

-
Devang



More information about the llvm-dev mailing list