forked from bytecodealliance/wasm-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wasmparser
: Create abstraction for local initialization (simplify f…
…uture optimizations) (bytecodealliance#1870) * put local_inits and inits into new type This will make it simpler to optimize the internals since it won't change the usage sites. * add first_non_default_local optimization * use likely check directly in set_init * add branching hints Benchmarks showed that they have a minor effect. * move hint.rs into validator sub module * apply rustfmt * add docs to LocalInits * is_init -> is_uninit removes negation at call-site * use is_uninit in set_init this way we do not push the same local index multiple times. This is the same behavior as on `main`. * apply rustfmt * refactor LocalInits::set_init * remove hint since there no longer are perf improvements
- Loading branch information
Showing
1 changed file
with
115 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters