Doc: add fmuladd to the list of vectorizeable functions. Thanks hfinkel.
authorNadav Rotem <nrotem@apple.com>
Wed, 26 Dec 2012 06:03:35 +0000 (06:03 +0000)
committerNadav Rotem <nrotem@apple.com>
Wed, 26 Dec 2012 06:03:35 +0000 (06:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171094 91177308-0d34-0410-b5e6-96231b3b80d8

docs/Vectorizers.rst

index 61b72092414210bc689d2d064e1f8bae86f70104..0d5e349e60d1300748a78850008e2c95a2e4bfe0 100644 (file)
@@ -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
 -----------