diff options
author | Alon Zakai <azakai@google.com> | 2019-05-03 11:26:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-03 11:26:41 -0700 |
commit | 909ac3410093c0b35b3181abcd44b9fb9ceb4781 (patch) | |
tree | 99b75f23843e1a435231e76f8e39835999ca9ee9 /test/wasm2js/func.2asm.js | |
parent | 80b509cfb8fa35d229643f35e423e6d049ab8849 (diff) | |
download | binaryen-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/func.2asm.js')
-rw-r--r-- | test/wasm2js/func.2asm.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/wasm2js/func.2asm.js b/test/wasm2js/func.2asm.js index 91f0c2f3f..7aecd4e6b 100644 --- a/test/wasm2js/func.2asm.js +++ b/test/wasm2js/func.2asm.js @@ -183,8 +183,10 @@ function asmFunc(global, env, buffer) { } function $47() { - dummy(); - dummy(); + block : { + dummy(); + dummy(); + } } function $48() { @@ -279,8 +281,8 @@ function asmFunc(global, env, buffer) { function $62($0) { $0 = $0 | 0; var $2_1 = 0; - $2_1 = 50; fake_return_waka123 : { + $2_1 = 50; if ($0) { break fake_return_waka123 } |