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
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:
Ideally, we could contain the
rvaconst as an offset in the load and drop theaddto eliminate two instructions. So we'd have:Related #127654