aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-12-26 06:03:35 +0000
committerNadav Rotem <nrotem@apple.com>2012-12-26 06:03:35 +0000
commitf7769e3c2f11c4a2dcacae253ab8043b6c41a1b4 (patch)
tree6a6dac32c1c5c4d78056b5c18e58bbc187229762
parent02082efaab9d66a64b7f9d0c4c882fa8ddad1f63 (diff)
Doc: add fmuladd to the list of vectorizeable functions. Thanks hfinkel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171094 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--docs/Vectorizers.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/Vectorizers.rst b/docs/Vectorizers.rst
index 61b7209241..0d5e349e60 100644
--- a/docs/Vectorizers.rst
+++ b/docs/Vectorizers.rst
@@ -183,6 +183,18 @@ vectorization is profitable.
A[i] += 4 * B[i];
}
+
+Vectorization of Special Idioms
+-------------------------------
+
+The Loop Vectorizer can detect and vectorize
+
+.. code-block:: c++
+
+ for ( k=1 ; k<n ; k++ ) {
+ x[k] = x[k-1] + y[k];
+ }
+
Vectorization of function calls
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -200,6 +212,8 @@ See the table below for a list of these functions.
+-----+-----+---------+
|fma |trunc|nearbyint|
+-----+-----+---------+
+| | | fmuladd |
++-----+-----+---------+
Performance
-----------