emscripten-core / emscripten-core/emscripten

LTO in wasm backend not that effective

Open
#10,603 20 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

E.g. on Box2D it increases code size by 2.5%, and users report similar things on the mailing list - results with fastcomp used to be better. (tested with `-flto` at compile and `-flto --llvm-lto 1` at link)

Perhaps LLVM LTO has changed a lot between the LLVM versions, and no longer shrinks code size as much? Or perhaps we are not doing something right? cc @sbc100

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.