[llvm] r338981 - [docs] Remove an example that isn't well formed LLVM IR and trips up the
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 5 19:02:09 PDT 2018
Author: chandlerc
Date: Sun Aug 5 19:02:09 2018
New Revision: 338981
URL: http://llvm.org/viewvc/llvm-project?rev=338981&view=rev
Log:
[docs] Remove an example that isn't well formed LLVM IR and trips up the
Sphinx syntax highlighter.
This example also doesn't really make sense. There is no control flow or
clarification of what the `Safe:` block exists to do... If we want
examples here, we should make them much more clear in addition to making
them well formed IR sequences.
Modified:
llvm/trunk/docs/LangRef.rst
Modified: llvm/trunk/docs/LangRef.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.rst?rev=338981&r1=338980&r2=338981&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Sun Aug 5 19:02:09 2018
@@ -2337,15 +2337,7 @@ The default LLVM floating-point environm
instructions do not have side effects. Results assume the round-to-nearest
rounding mode. No floating-point exception state is maintained in this
environment. Therefore, there is no attempt to create or preserve invalid
-operation (SNaN) or division-by-zero exceptions in these examples:
-
-.. code-block:: llvm
-
- %A = fdiv 0x7ff0000000000001, %X ; 64-bit SNaN hex value
- %B = fdiv %X, 0.0
- Safe:
- %A = NaN
- %B = NaN
+operation (SNaN) or division-by-zero exceptions.
The benefit of this exception-free assumption is that floating-point
operations may be speculated freely without any other fast-math relaxations
More information about the llvm-commits
mailing list