Skip to content

[Wasm RyuJIT] Contain Load Offsets When Possible #128053

Description

@adamperlin

Our current codegen pattern for loads from a base offset could be compressed down.
For example, to load R2R data we do a pattern like:

global.get $imageBase
i32.const <rva>
i32.add
i32.load align=N offset=0

Ideally, we could contain the rva const as an offset in the load and drop the add to eliminate two instructions. So we'd have:

global.get $imageBase
i32.load align=N offset=<rva> 

Related #127654

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions