diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-04-10 10:44:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 10:44:07 -0700 |
commit | df19ebde22c48fba43f88c71c4870f53b8974f93 (patch) | |
tree | c9e44c9d05045954c082fabd5eaf4f4d465e7aa7 /test/debugInfo.fromasm.imprecise.map | |
parent | 27517701d611ad7de5b467eaee2f0d589180465f (diff) | |
download | binaryen-df19ebde22c48fba43f88c71c4870f53b8974f93.tar.gz binaryen-df19ebde22c48fba43f88c71c4870f53b8974f93.tar.bz2 binaryen-df19ebde22c48fba43f88c71c4870f53b8974f93.zip |
br_table optimizations (#1502)
Inspired by #1501
* remove unneeded appearances of the default switch target (at the front or back of the list of targets)
* optimize a switch with 0, 1 or 2 targets into an if or if-chain
* optimize a br_if br pair when they have the same target
Makes e.g. fastcomp libc++ 2% smaller. Noticeable improvements on other things like box2d etc.
Diffstat (limited to 'test/debugInfo.fromasm.imprecise.map')
-rw-r--r-- | test/debugInfo.fromasm.imprecise.map | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/debugInfo.fromasm.imprecise.map b/test/debugInfo.fromasm.imprecise.map index 3354f4021..f13c4d08e 100644 --- a/test/debugInfo.fromasm.imprecise.map +++ b/test/debugInfo.fromasm.imprecise.map @@ -1 +1 @@ -{"version":3,"sources":["tests/hello_world.c","tests/other_file.cpp","return.cpp","even-opted.cpp","fib.c","/tmp/emscripten_test_binaryen2_28hnAe/src.c","(unknown)"],"names":[],"mappings":"mGC8ylTA,QC7vlTA,OAkDA,QCnGA,OACA,OACA,aCAA,gBAKA,MAJA,OADA,0BAKA,0FCsi1DA,KCrvyDA"}
\ No newline at end of file +{"version":3,"sources":["tests/hello_world.c","tests/other_file.cpp","return.cpp","even-opted.cpp","fib.c","/tmp/emscripten_test_binaryen2_28hnAe/src.c","(unknown)"],"names":[],"mappings":"mGC8ylTA,QC7vlTA,OAkDA,QCnGA,OACA,OACA,aCAA,gBAKA,MAJA,OADA,0BAKA,wECsi1DA,KCrvyDA"}
\ No newline at end of file |