Skip to content

Commit 81601cf

Browse files
authored
[Docs] Clarify that reassoc isn't just for reassociation (#133168)
The `reassoc` fast-math flag allows a much wider array of algebraic transformations than just strictly reassociations. In some cases it does commutations, distributions, and folds away redundant inverse operations... While it might make sense to fix the flag naming at some point, in the meantime we should at least have the docs be accurate to avoid confusion.
1 parent 42b3f91 commit 81601cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/docs/LangRef.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3971,8 +3971,9 @@ output, given the original flags.
39713971
for places where this can apply to LLVM's intrinsic math functions.
39723972

39733973
``reassoc``
3974-
Allow reassociation transformations for floating-point instructions.
3975-
This may dramatically change results in floating-point.
3974+
Allow algebraically equivalent transformations for floating-point
3975+
instructions such as reassociation transformations. This may dramatically
3976+
change results in floating-point.
39763977

39773978
.. _uselistorder:
39783979

0 commit comments

Comments
 (0)