https://bugs.llvm.org/show_bug.cgi?id=43796
Bug ID: 43796
Summary: [WebAssembly] Add a way to run binaryen's wasm-opt
automatically
Product: clang
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: dan433...@gmail.com
CC: aardap...@gmail.com, ahee...@gmail.com,
htmldevelo...@gmail.com, kripkenste...@gmail.com,
llvm-bugs@lists.llvm.org, neeil...@live.com,
richard-l...@metafoo.co.uk, s...@chromium.org
Alon asked me recently if it would make sense for the clang driver to run
Binaryen's wasm-opt automatically. My initial reaction was that LLVM/clang
tools don't typically run external optimization tools to post-process their
output, but thinking about it more, it seems like it might be ok if we take
care.
As background, while the in-tree LLVM WebAssembly target emits correct output,
and does some wasm-specific optimizations, there are a lot more such
optimizations possible that it doesn't do. Binaryen (which is not part of LLVM)
has a tool called wasm-opt which does do many more of these optimizations, so
it can be quite beneficial to run it on LLVM's output. LLVM could conceivably
be made to do those optimizations too, but right now, no one is actively
working on this, so unless this changes, it's desirable to use wasm-opt.
We'd still want to ensure that LLVM doesn't *depend* on having these tools
available. But if they are available, it would be convenient for users to be
able to have the clang driver run them automatically.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs