[cfe-dev] limiting inlining

Devang Patel devang.patel at gmail.com
Thu Sep 24 12:41:18 PDT 2009


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.

-
Devang



More information about the cfe-dev mailing list