Issue 311 - Add a pass to make NaN bits deterministic. (#322)

This commit is contained in:
pup
2018-05-09 16:11:58 -04:00
committed by Dan Gohman
parent f636d795c5
commit b36fc6b75f
6 changed files with 105 additions and 0 deletions

View File

@@ -99,6 +99,16 @@ enable_float = BoolSetting(
""",
default=True)
enable_nan_canonicalization = BoolSetting(
"""
Enable NaN canonicalization
This replaces NaNs with a single canonical value, for users requiring
entirely deterministic WebAssembly computation. This is not required
by the WebAssembly spec, so it is not enabled by default.
""",
default=False)
enable_simd = BoolSetting(
"""Enable the use of SIMD instructions.""",
default=True)