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!