[LLVMdev] Maximum inlining threshold

Dmitry N. Mikushin maemarcus at gmail.com
Tue Oct 18 09:43:46 PDT 2011


Hi Duncan,

I followed you advice

			const AttrListPtr attr = func->getAttributes();
			const AttrListPtr attr_new = attr.addAttr(~0U, Attribute::AlwaysInline);
			func->setAttributes(attr_new);

With AlwaysInline it seems enough to perform inlining without
specifying any threshold.

Thank you!
- D.

2011/10/15 Duncan Sands <baldrick at free.fr>:
> Hi Dmitry,
>
>> We want to apply the deepest possible inlining to the target code. Looks like
>
> you could give every function the alwaysinline attribute.
>
> Ciao, Duncan.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list