Skip to content

Conversation

@kripken
Copy link
Member

@kripken kripken commented Aug 21, 2024

This is in quite ancient code, so it's a long-standing issue, but it got worse
when we enabled StackIR in more situations (#6568), which made it more
noticeable, I think.

For example, testing on test_biggerswitch in Emscripten, the LLVM part
is pretty slow too so the Binaryen slowdown didn't stand out hugely, but
just doing

wasm-opt --optimize-level=2 input.wasm -o output.wasm

(that is, do no work, but set the optimize level to 2 so that StackIR opts
are run) used to take 28 seconds (!). With this PR that goes down to less
than 1.

@kripken kripken requested a review from tlively August 21, 2024 17:09
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, nice fix.

@kripken kripken merged commit 60bd610 into WebAssembly:main Aug 21, 2024
@kripken kripken deleted the noquad.stackir branch August 21, 2024 23:12
@gkdn gkdn mentioned this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants