Lower CmmRegOff pointer more efficiently in wasm NCG
In wasm NCG, when we lower the pointer argument of CmmLoad
/CmmStore
, we have a little special logic in lower_CmmExpr_Ptr
which tries to lower the corresponding CmmExpr
to a pair of base pointer and non-negative constant offset, so we can emit wasm load/store opcodes with that offset directly and avoid a run-time addition. However, lower_CmmExpr_Ptr
didn't consider the case of CmmRegOff
pointers, so this is a small missing optimization that can be easily added.