diff options
author | Max Graey <maxgraey@gmail.com> | 2020-09-29 02:43:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 16:43:46 -0700 |
commit | 5a4db93bac7e123910ea173bb0a9c9f61bc6ee78 (patch) | |
tree | 54a486ef971888eee3d5257059ea2e0bdf0886f7 /src/wasm.h | |
parent | c721f85e79f97936f4804afe51dcd2859ad13afd (diff) | |
download | binaryen-5a4db93bac7e123910ea173bb0a9c9f61bc6ee78.tar.gz binaryen-5a4db93bac7e123910ea173bb0a9c9f61bc6ee78.tar.bz2 binaryen-5a4db93bac7e123910ea173bb0a9c9f61bc6ee78.zip |
Lower signed binops to unsigned binops when possible (#2988)
This can unlock further instruction optimizations that do not apply to signed operations.
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm.h b/src/wasm.h index d2965b405..d41ad863a 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -225,8 +225,8 @@ enum BinaryOp { OrInt32, XorInt32, ShlInt32, - ShrUInt32, ShrSInt32, + ShrUInt32, RotLInt32, RotRInt32, @@ -258,8 +258,8 @@ enum BinaryOp { OrInt64, XorInt64, ShlInt64, - ShrUInt64, ShrSInt64, + ShrUInt64, RotLInt64, RotRInt64, |