Repository navigation
Open
1 / 11 of 1 issue completedOpen
1 / 11 of 1 issue completed
Copy link
Labels
User StoryA single user-facing feature. Can be grouped under an epic.arch-wasmWebAssembly architecturearea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMItenet-performancePerformance related issue
Milestone
Description
This is a blanket issue meant to track code quality improvements to size, startup, and runtime performance for the new RyuJIT Wasm Backend. Our current priorities are size-focused and so far, size improvements seem highly correlated with startup performance as well. Size improvements are often correlated with steady-state runtime performance improvements, though we shouldn't necessarily assume that will always be the case.
Perf Categories
Size / Startup
Regalloc
- More efficient use of locals: [wasm][r2r] Jit generates code with very large numbers of wasm locals #135139
- Coalesce unnecessary copies between locals: [wasm] [JIT]: Local copy coalescing #136662
- Allocate unexposed GC refs to locals: [wasm] Regalloc: Allow Non-exposed GC Ref Locals to Live in Wasm Locals #135543
- More general GC Ref Spilling accounting for liveness across safepoints: [wasm] [JIT]: Enable more GC-ref local candidates by introducing spilling #136663
Inlining
- Tune inlining policy for Wasm to reduce code size
Morph
- Reduce arithmetic expression expansions: [Wasm][CoreCLR] Preserve native remainder instead of expanding constant MOD to SUB/MUL/DIV #135982
Prolog/Epilog
- Drop stack frame setup and teardown for methods which don't need stack space and don't need unwinding
Loops
- Investigate disabling loop cloning/unrolling on Wasm: [Wasm] Experimentally disable loop cloning and unrolling #136640
SIMD
- [RyuJIT Wasm] CQ: Improve StoreSelectedScalar/LoadScalarAndInsert Codegen #131003
- [wasm] Managed Wide-Vector (256, 512) SIMD Fallbacks are Very Expensive in Size #136741 (broad)
Tail Calls
- Investigate the benefit of enabling implicit tail calls on Wasm (currently all tail calls are disabled due to issues when the callee is interpreted.)
GDV
- Related: [wasm] CQ: Lack of Implicit Tail Calls Leads to Size-Expensive GDV Expansion #136246; Investigate size tradeoffs in our GDV heuristics
Null Checks
- Propagate non-null
thisassertion: [NO MERGE] JIT: Experiment with non-nullthisfor Wasm R2R #134677 - Teach
fgAddrCouldBeNullto recognize more non-null cases
Steady-state runtime perf
Loops
- [Wasm][CoreCLR] Loop-hoisting profitability uses a negative native-register budget #135979 (loop hoisting profitability in a wasm context)
Cross-cutting
Opt-Repeat
- Investigate the impact of running opt repeat in an AOT Wasm context
Reacted by Julie Lee, Rogier van der Hee and Paulus Pärssinen
Sub-issues
Collapse Sub-issuesSub-issues
Loading 1 sub-issues
Metadata
Metadata
Assignees
Labels
User StoryA single user-facing feature. Can be grouped under an epic.arch-wasmWebAssembly architecturearea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMItenet-performancePerformance related issue
Activity
dotnet-policy-service commentedon Oct 16, 2026
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Oct 16, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
[-][RyuJIT Wasm] Codegen Quality Improvements[/-][+][User Story] RyuJIT Wasm Codegen Quality Improvements[/+]JIT: omit wasm Virtual IP updates in throw helper blocks (#137201)
JIT: Elide adjacent Wasm local set/get pairs at known last uses (#137199
JIT: omit redundant wasm eqz pairs before conditional branches (#137205)
JIT: use scalar stores for small wasm zero fills (#137234)
JIT: use v128.store for 16-byte wasm zero fills (#137517)
JIT: fold wasm helper addresses into load offsets (#137510)
JIT: clarify wasm GC write-through and drop KeepAlive
JIT: enregister wasm GC locals with write-through homes (#137473)
Wasm: omit frame header for optimized methods that make no calls (#13…
JIT: rematerialize single-use invariant locals on Wasm (#138061)