-
Notifications
You must be signed in to change notification settings - Fork 792
Open
Description
wasm-opt does not support running on a Wasm component, that is the default with WASIp2. wasm-opt is used for example in LLVM to optimize compiled binaries (see llvm/llvm-project#98373), which is not possible in WASIp2 for now because of this lack of support.
A possible solution may be to iterate over a Wasm component and find the core modules within it, apply current wasm-opt optimizations on each core module, then repackage the component.
Remark: I suppose all of binaryen tools can add support for Wasm components. This issue is for wasm-opt specifically but can be transformed into a more general issue.
pavelsavara, thaystg, akoeplinger, ilonatommy, maraf and 3 more
Metadata
Metadata
Assignees
Labels
No labels