diff options
-rw-r--r-- | docs/Vectorizers.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/Vectorizers.rst b/docs/Vectorizers.rst index 61b7209..0d5e349 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 ----------- |