summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-----------