]> granicus.if.org Git - llvm/commitdiff
[LangRef] Clarify which fast-math flags affect fcmp.
authorEli Friedman <efriedma@codeaurora.org>
Tue, 17 Jul 2018 20:28:31 +0000 (20:28 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Tue, 17 Jul 2018 20:28:31 +0000 (20:28 +0000)
nsz has no effect due to the way fcmp is defined; +0 and -0 compare
equal anyway. reassoc could have the obvious effect.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337322 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.rst

index 9c10bbb0d611dd822c4f2a8e9500e6af83be988d..1f4641cb231439ace6a656652ecf2e84280081e9 100644 (file)
@@ -9294,7 +9294,7 @@ otherwise unsafe floating-point optimizations.
 Any set of fast-math flags are legal on an ``fcmp`` instruction, but the
 only flags that have any effect on its semantics are those that allow
 assumptions to be made about the values of input arguments; namely
-``nnan``, ``ninf``, and ``nsz``. See :ref:`fastmath` for more information.
+``nnan``, ``ninf``, and ``reassoc``. See :ref:`fastmath` for more information.
 
 Example:
 """"""""