[cfe-dev] link-time optimization

Jason Sachs jmsachs at gmail.com
Fri Mar 16 16:09:51 PDT 2012


On Fri, Mar 16, 2012 at 5:50 PM, Xi Wang <xi.wang at gmail.com> wrote:
> I am not sure if -O4 enables LTO on windows, but you can try to
> replace llvm-link with llvm-ld in your build script.

Just tried it. Wow -- it inlined the whole main() function except for
calls to printf.

thanks!



More information about the cfe-dev mailing list