diff options
author | Max Graey <maxgraey@gmail.com> | 2020-11-03 18:24:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 08:24:17 -0800 |
commit | 081019104a09b5201fa1307a4758c19ca392c2d8 (patch) | |
tree | 692b220a3863e6ac473a39f92d34876eeb8f5117 /test/wasm2js/sign_ext.2asm.js | |
parent | cdc2d2c006bc0406c93509ed0d7a2dfbb6f51ea5 (diff) | |
download | binaryen-081019104a09b5201fa1307a4758c19ca392c2d8.tar.gz binaryen-081019104a09b5201fa1307a4758c19ca392c2d8.tar.bz2 binaryen-081019104a09b5201fa1307a4758c19ca392c2d8.zip |
Optimize x * -1.0 in non-fastMath case (#3315)
We can still make x * -1.0 cheaper for non-fastMath mode as:
x * -1.0 -> -0.0 - x
Should at least help baseline compilers.
Also it could enable further optimizations, e.g.:
a + b * -1
a + (-0.0 - b)
(a - 0.0) - b
a - b
Diffstat (limited to 'test/wasm2js/sign_ext.2asm.js')
0 files changed, 0 insertions, 0 deletions