summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-10-16 16:36:13 -0700
committerGitHub <noreply@github.com>2018-10-16 16:36:13 -0700
commit905aea256a3b5114121ef106084a55bad0e3ab1d (patch)
treeb859a79470521cf64d5acc55f06095a8baf7f870 /src
parent021a2b85fb9264d9cb4a21c039682d1f0fddbd1c (diff)
downloadbinaryen-905aea256a3b5114121ef106084a55bad0e3ab1d.tar.gz
binaryen-905aea256a3b5114121ef106084a55bad0e3ab1d.tar.bz2
binaryen-905aea256a3b5114121ef106084a55bad0e3ab1d.zip
comment on nondeterminism in precompute pass [ci skip] (#1704)
Diffstat (limited to 'src')
-rw-r--r--src/passes/Precompute.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/passes/Precompute.cpp b/src/passes/Precompute.cpp
index b6b7d5097..42127901c 100644
--- a/src/passes/Precompute.cpp
+++ b/src/passes/Precompute.cpp
@@ -17,6 +17,11 @@
//
// Computes code at compile time where possible.
//
+// Possible nondeterminism: WebAssembly NaN signs are nondeterministic,
+// and this pass may optimize e.g. a float 0 / 0 into +nan while a VM may
+// emit -nan, which can be a noticeable difference if the bits are
+// looked at.
+//
#include <wasm.h>
#include <pass.h>