[PATCH] D47963: [LangRef] Clarify that nnan and ninf don't produce undef or poison.

Nuno Lopes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 9 15:05:08 PDT 2018


nlopes added inline comments.


================
Comment at: docs/LangRef.rst:2347
+   NaNs, but the value of the result is unspecified. The unspecified result
+   may not be the same each time the expression is evaluated.
 
----------------
This is precisely the definition of undef: an arbitrary value that may yield a different value each time it's used.  But the intention was to avoid undef and poison.
I'm not familiar enough with floats to make any concrete suggestion; I'm just type checking.


Repository:
  rL LLVM

https://reviews.llvm.org/D47963





More information about the llvm-commits mailing list