diff options
author | Max Graey <maxgraey@gmail.com> | 2021-07-16 22:33:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-16 12:33:46 -0700 |
commit | 023bbb28f393032a8df6c743319cd835feddf5ba (patch) | |
tree | 0a34035df50a30243c7ed9c75d07255f659f0615 /test/passes/precompute_all-features.wast | |
parent | 18375122edc23a5ff9acc0c4f930357687ff24dd (diff) | |
download | binaryen-023bbb28f393032a8df6c743319cd835feddf5ba.tar.gz binaryen-023bbb28f393032a8df6c743319cd835feddf5ba.tar.bz2 binaryen-023bbb28f393032a8df6c743319cd835feddf5ba.zip |
[Optimize-Instructions] Simplify sign patterns like x < 0 ? -1 : 1 (#3756)
i32(x) < 0 ? i32(-1) : i32(1) -> x >> 31 | 1
i64(x) < 0 ? i64(-1) : i64(1) -> x >> 63 | 1
This shrinks 2 bytes.
Diffstat (limited to 'test/passes/precompute_all-features.wast')
0 files changed, 0 insertions, 0 deletions