diff options
author | Alon Zakai <azakai@google.com> | 2020-09-30 12:39:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 12:39:05 -0700 |
commit | 07047103a26e1c17ee995ef3e1358ddb26d8e8c8 (patch) | |
tree | edaf22d19ab7c22c3cff58f9e02d8f41abcb5b3e /test/wasm2js/dynamicLibrary.2asm.js | |
parent | 11de8894505d37b7b970a2103bc5b1cfd094b115 (diff) | |
download | binaryen-07047103a26e1c17ee995ef3e1358ddb26d8e8c8.tar.gz binaryen-07047103a26e1c17ee995ef3e1358ddb26d8e8c8.tar.bz2 binaryen-07047103a26e1c17ee995ef3e1358ddb26d8e8c8.zip |
Add --fast-math mode (#3155)
Similar to clang and gcc, --fast-math makes us ignore corner cases of floating-point
math like NaN changes and (not done yet) lack of associativity and so forth.
In the future we may want to have separate fast math flags for each specific thing,
like gcc and clang do.
This undoes some changes (#2958 and #3096) where we assumed it was
ok to not change NaN bits, but @binji corrected us. We can only do such things in fast
math mode. This puts those optimizations behind that flag, adds tests for it, and
restores the interpreter to the simpler code from before with no special cases.
Diffstat (limited to 'test/wasm2js/dynamicLibrary.2asm.js')
0 files changed, 0 insertions, 0 deletions