diff options
| author | Nadav Rotem <nrotem@apple.com> | 2012-12-26 06:03:35 +0000 |
|---|---|---|
| committer | Nadav Rotem <nrotem@apple.com> | 2012-12-26 06:03:35 +0000 |
| commit | 7375d35711248a407f2d9e2c2d8927b529b3c734 (patch) | |
| tree | 880dd8793fa5872c38e16aeede2f9190a237ab7e | |
| parent | 8a4867758649bc22c6e2a7863030b3ffa822a8a8 (diff) | |
| download | bcm5719-llvm-7375d35711248a407f2d9e2c2d8927b529b3c734.tar.gz bcm5719-llvm-7375d35711248a407f2d9e2c2d8927b529b3c734.zip | |
Doc: add fmuladd to the list of vectorizeable functions. Thanks hfinkel.
llvm-svn: 171094
| -rw-r--r-- | llvm/docs/Vectorizers.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/docs/Vectorizers.rst b/llvm/docs/Vectorizers.rst index 61b72092414..0d5e349e60d 100644 --- a/llvm/docs/Vectorizers.rst +++ b/llvm/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 ----------- |

