summaryrefslogtreecommitdiff
path: root/test/wasm2js/switch.2asm.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-05-03 11:26:41 -0700
committerGitHub <noreply@github.com>2019-05-03 11:26:41 -0700
commit909ac3410093c0b35b3181abcd44b9fb9ceb4781 (patch)
tree99b75f23843e1a435231e76f8e39835999ca9ee9 /test/wasm2js/switch.2asm.js
parent80b509cfb8fa35d229643f35e423e6d049ab8849 (diff)
downloadbinaryen-909ac3410093c0b35b3181abcd44b9fb9ceb4781.tar.gz
binaryen-909ac3410093c0b35b3181abcd44b9fb9ceb4781.tar.bz2
binaryen-909ac3410093c0b35b3181abcd44b9fb9ceb4781.zip
wasm2js: avoid some slow operations when not optimizing (#2082)
Without this PR, wasm2js0.test_printf in emscripten took an extremely long time to compile.
Diffstat (limited to 'test/wasm2js/switch.2asm.js')
-rw-r--r--test/wasm2js/switch.2asm.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/wasm2js/switch.2asm.js b/test/wasm2js/switch.2asm.js
index 78356d29b..8e3959526 100644
--- a/test/wasm2js/switch.2asm.js
+++ b/test/wasm2js/switch.2asm.js
@@ -182,12 +182,6 @@ function asmFunc(global, env, buffer) {
}
function $3() {
- block : {
- switch (0 | 0) {
- default:
- break block;
- };
- }
return 1 | 0;
}