[cfe-dev] limiting inlining

Roman Divacky rdivacky at freebsd.org
Thu Sep 24 14:10:32 PDT 2009


On Thu, Sep 24, 2009 at 12:41:18PM -0700, Devang Patel wrote:
> On Thu, Sep 24, 2009 at 12:18 PM, Roman Divacky <rdivacky at freebsd.org> wrote:
> > hi
> >
> > I need clang to support --param max-inline-insns* (mostly max-inline-insns-single)
> > to be able to compile FreeBSD loader (or.. to be able to compile it under some
> > limited size). I was looking in llvm and I found "inline-threshold" but
> > I dont know how this is invoked.
> >
> > can you help me shed some light on how this is done so I can provide a patch?
> 
> Relying on such parameter may not be a good idea but you can try
> -mllvm -inline-threshold=xyz on clang command line.

we need that for our bootloader... it needs to fit into a given size. I tried
the suggested cmd line but it does not seem to change anything at all.. I'll
try to look more into it..

thnx!



More information about the cfe-dev mailing list