diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-08-22 10:27:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-22 10:27:52 -0700 |
commit | cfeddd741f6503457c6c4a5e1741d91eb0e7e08d (patch) | |
tree | 721d09f5ecdb8d90748244311073bdaa4ed54853 /test/binaryen.js | |
parent | ad8bc65685b19c0c3323dbb0a5cf2b6f709c7b92 (diff) | |
download | binaryen-cfeddd741f6503457c6c4a5e1741d91eb0e7e08d.tar.gz binaryen-cfeddd741f6503457c6c4a5e1741d91eb0e7e08d.tar.bz2 binaryen-cfeddd741f6503457c6c4a5e1741d91eb0e7e08d.zip |
Inline many (#1125)
* Improve inlining pass to inline single-use functions that are fairly small, which makes it useful for removing unnecessary global constructors from clang.
* Add an inlining-optimizing pass that also optimizes where it inlined, as new opportunities arise. enable that it by default in O2+
* In addition, in -O3+ also inline small functions with multiple uses. This helps a lot with things like safe-int-divide functions (where each int divide is replaced by a safe divide that won't trap). Inlining gets rid of around half of the overhead there.
Diffstat (limited to 'test/binaryen.js')
0 files changed, 0 insertions, 0 deletions