Page MenuHomePhabricator

bernhard (bernhard)
User

Projects

User does not belong to any projects.

User Details

User Since
Apr 23 2020, 5:57 AM (55 w, 3 d)

Recent Activity

May 2 2020

bernhard added a comment to D70500: [WebAssembly] Enable use of wasm-opt and LTO-enabled system libraries.

I had an application crash with optimizations enabled, so I wanted to keep the debug info but the automatic wasm-opt kept removing it and I lost another 30 minutes to this, so I'm back :-)

May 2 2020, 6:19 AM · Restricted Project

Apr 23 2020

bernhard added a comment to D70500: [WebAssembly] Enable use of wasm-opt and LTO-enabled system libraries.

Would it work to increase the memory size, and then put your data in the new space this creates at the end of memory?

Apr 23 2020, 12:28 PM · Restricted Project
bernhard added a comment to D70500: [WebAssembly] Enable use of wasm-opt and LTO-enabled system libraries.

It's for users who want smaller wasm binaries. It's not currently documented, though yes, it would be nice to document it.

But how would a user even end up with wasm-opt in the same directory of clang binaries?

Apr 23 2020, 8:38 AM · Restricted Project
bernhard added a comment to D70500: [WebAssembly] Enable use of wasm-opt and LTO-enabled system libraries.

Are there plans to offer a way to disable this behavior (or have it optional in the first place)?
We'd like to run some custom processing between wasm-ld and wasm-opt which can't happen after the latter due to some of its one-way destructive optimizations (i.e. memory-packing or simplify-globals passes).
The only way now is to tell our users to place wasm-opt somewhere where clang can't find it. Or instead of using one clang super-command to manually call -cc1 and wasm-ld separately which is disappointing.

Apr 23 2020, 6:27 AM · Restricted Project