After #31146 is merged, as far as I understand one could start using the
-lto=llvm
flag with themaster
nightlies. Or would it needlld
built in some special way? Also, does it already yield some reductions in size of produced binaries, or do we need to wait for language-specific LTO to kick in to start seeing any noticeable reduction?
@Max_Desiatov wasm-ld
already support bitcode LTO, so we can use it without special work after the PR merged. And I've not tried yet for wasm but I think llvm level lto can reduce size of produced binaries more than wasm-opt can.