bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
14.82k stars 1.24k forks source link

aarch64: Add support for `load+extends` patterns #8774

Closed afonso360 closed 3 weeks ago

afonso360 commented 3 weeks ago

👋 Hey,

This PR adds support for merging a load with a {u,s}extend instruction. On AArch64 the load instructions already do this by default, so we can just emit the regular loads during the extend lowering and mark them as sunk.

CC: https://github.com/bytecodealliance/wasmtime/issues/6056