diff options
author | Max Graey <maxgraey@gmail.com> | 2021-10-12 20:20:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-12 10:20:30 -0700 |
commit | cd4e0e8ca447158dcc7c7f95cac2adcc43f99094 (patch) | |
tree | c3a899faddfeccbbf160c9ce14b4c6193f076b97 /src/wasm-stack.h | |
parent | 5071f49988f65a5e8634714a7763ecce414651fe (diff) | |
download | binaryen-cd4e0e8ca447158dcc7c7f95cac2adcc43f99094.tar.gz binaryen-cd4e0e8ca447158dcc7c7f95cac2adcc43f99094.tar.bz2 binaryen-cd4e0e8ca447158dcc7c7f95cac2adcc43f99094.zip |
[Costs] More precise costs for int div & rem (#4229)
Div/rem by a constant can be optimized by VMs, so it is usually
closer to the speed of a mul.
Div on 64-bit (either with or without a constant) can be slower
than 32-bit, so bump that up by one as well.
Diffstat (limited to 'src/wasm-stack.h')
0 files changed, 0 insertions, 0 deletions