[llvm] r350846 - [Docs] fix typo, adjust text order
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 10 09:02:55 PST 2019
Author: spatel
Date: Thu Jan 10 09:02:55 2019
New Revision: 350846
URL: http://llvm.org/viewvc/llvm-project?rev=350846&view=rev
Log:
[Docs] fix typo, adjust text order
Modified:
llvm/trunk/docs/Vectorizers.rst
Modified: llvm/trunk/docs/Vectorizers.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/Vectorizers.rst?rev=350846&r1=350845&r2=350846&view=diff
==============================================================================
--- llvm/trunk/docs/Vectorizers.rst (original)
+++ llvm/trunk/docs/Vectorizers.rst Thu Jan 10 09:02:55 2019
@@ -311,7 +311,7 @@ ignored (as other compilers do) are stil
Vectorization of function calls
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-The Loop Vectorize can vectorize intrinsic math functions.
+The Loop Vectorizer can vectorize intrinsic math functions.
See the table below for a list of these functions.
+-----+-----+---------+
@@ -328,6 +328,11 @@ See the table below for a list of these
| | | fmuladd |
+-----+-----+---------+
+Note that the optimizer may not be able to vectorize math library functions
+that correspond to these intrinsics if the library calls access external state
+such as "errno". To allow better optimization of C/C++ math library functions,
+use "-fno-math-errno".
+
The loop vectorizer knows about special instructions on the target and will
vectorize a loop containing a function call that maps to the instructions. For
example, the loop below will be vectorized on Intel x86 if the SSE4.1 roundps
@@ -340,10 +345,6 @@ instruction is available.
f[i] = floorf(f[i]);
}
-Note that the optimizer may not be able to vectorize math library functions
-that access external state such as "errno". To allow better optimization of
-C/C++ math library functions, use "-fno-math-errno".
-
Partial unrolling during vectorization
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
More information about the llvm-commits
mailing list