Skip to content

[Wasm RyuJIT] Switch from Const Reloc -> Offset Reloc for Call Codegen #127467

@adamperlin

Description

@adamperlin

Right now, our codegen pattern for is

i32.const <R_WASM_MEMORY_ADDR_SLEB>
i32.load
i32.load
call_indirect

We should utilize the WASM_MEMORY_ADD_REL_LEB reloc type to embed the reloc as a load offset, to reduce the instruction footprint for calls, like so:

i32.load offset=<R_WASM_MEMORY_ADDR_LEB>
i32.load
call_indirect

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Type

No fields configured for Task.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions