summaryrefslogtreecommitdiff
path: root/src/tools/wasm-reduce.cpp
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2021-07-20 22:28:07 +0300
committerGitHub <noreply@github.com>2021-07-20 12:28:07 -0700
commite67d50d5a6290ec9968344ee5712ebf62847fea8 (patch)
treef906ec3b52daa307b6b810c4a8548999ca727c11 /src/tools/wasm-reduce.cpp
parentfb9de9d391a7272548dcc41cd8229076189d7398 (diff)
downloadbinaryen-e67d50d5a6290ec9968344ee5712ebf62847fea8.tar.gz
binaryen-e67d50d5a6290ec9968344ee5712ebf62847fea8.tar.bz2
binaryen-e67d50d5a6290ec9968344ee5712ebf62847fea8.zip
[Optimize Instructions] Simplify sign extentions (#4004)
requiring sign-extension: ``` i64(x) << 56 >> 56 ==> i64.extend8_s(x) i64(x) << 48 >> 48 ==> i64.extend16_s(x) i64(x) << 32 >> 32 ==> i64.extend32_s(x) i64.extend_i32_s(i32.wrap_i64(x)) ==> i64.extend32_s(x) ``` general: ``` i32.wrap_i64(i64.extend_i32_s(x)) ==> x i32.wrap_i64(i64.extend_i32_u(x)) ==> x ```
Diffstat (limited to 'src/tools/wasm-reduce.cpp')
0 files changed, 0 insertions, 0 deletions