[LLVMdev] Any mechanism available for link time inlineing?
Duncan P. N. Exon Smith
dexonsmith at apple.com
Sun Feb 15 14:35:07 PST 2015
> On 2015 Feb 14, at 20:36, Tim Northover <t.p.northover at gmail.com> wrote:
>
>> LLVM LTO is available by default with Apple's XCode development environment,
>> just specify -O4.
>
> I'm not sure exactly what -O4 does these days, but it's not the
> suggested way of doing LTO. For that you should pass "-flto" with a
> more normal optimisation level.
>
To add to what Nick and Tim have said: `llvm-lto` is more of a debugging
tool (for testcases, repros, etc.) than anything else.
Unless you're looking to contribute to LTO, you should be strictly using
`clang -flto`.
More information about the llvm-dev
mailing list