-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Escape analysis for Wasm GC #9349
Copy link
Copy link
Open
Labels
cranelift:goal:optimize-speedFocus area: the speed of the code produced by Cranelift.Focus area: the speed of the code produced by Cranelift.performancewasm-proposal:gcIssues with the implementation of the gc wasm proposalIssues with the implementation of the gc wasm proposalwasmtime:ref-typesIssues related to reference types and GC in WasmtimeIssues related to reference types and GC in Wasmtime
Metadata
Metadata
Assignees
Labels
cranelift:goal:optimize-speedFocus area: the speed of the code produced by Cranelift.Focus area: the speed of the code produced by Cranelift.performancewasm-proposal:gcIssues with the implementation of the gc wasm proposalIssues with the implementation of the gc wasm proposalwasmtime:ref-typesIssues related to reference types and GC in WasmtimeIssues related to reference types and GC in Wasmtime
We could implement an escape analysis for Wasm GC types to figure out which allocations do not escape their stack frame. Then we can do unboxing/SROA, replacing a struct's fields or array elements with a set of local SSA values.