[LLVMdev] Maximum inlining threshold

Dmitry N. Mikushin maemarcus at gmail.com
Sat Oct 15 04:35:12 PDT 2011


Hi,

We want to apply the deepest possible inlining to the target code. Looks like

builder.Inliner = createFunctionInliningPass(2000);

does the sufficient inlining, but what would be the best value for
threshold here? Apparently,

builder.Inliner = createFunctionInliningPass(numeric_limits<int>::max());

gives less inlining, that 2000.

Thanks,
- D.



More information about the llvm-dev mailing list