You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sort the local variable order with the most frequently referenced first. #18
To give a canonical ordering for experimenting with the encoding efficiency it might help to sort each functions local variables with the most frequently referenced first. This way an encoding optimizing for small local variable indexes might do best, such as the polyfill-prototype-1. I assume similar encoding optimizations will be used in the MVP too because it appears quite effective.
changed the title [-]asm2wasm: sort the local variable order with the most frequently referenced first.[/-][+]Sort the local variable order with the most frequently referenced first.[/+]on Dec 21, 2015
Activity
kripken commentedon Dec 21, 2015
We can do this in a binaryen pass, then it wouldn't be tied to asm2wasm (but asm2wasm could run it in its optimizations phase).
[-]asm2wasm: sort the local variable order with the most frequently referenced first.[/-][+]Sort the local variable order with the most frequently referenced first.[/+]tlively commentedon Dec 13, 2024
This is done by the ReorderLocals pass.