[llvm-commits] [llvm] r171094 - /llvm/trunk/docs/Vectorizers.rst
Nadav Rotem
nrotem at apple.com
Tue Dec 25 22:03:36 PST 2012
Author: nadav
Date: Wed Dec 26 00:03:35 2012
New Revision: 171094
URL: http://llvm.org/viewvc/llvm-project?rev=171094&view=rev
Log:
Doc: add fmuladd to the list of vectorizeable functions. Thanks hfinkel.
Modified:
llvm/trunk/docs/Vectorizers.rst
Modified: llvm/trunk/docs/Vectorizers.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/Vectorizers.rst?rev=171094&r1=171093&r2=171094&view=diff
==============================================================================
--- llvm/trunk/docs/Vectorizers.rst (original)
+++ llvm/trunk/docs/Vectorizers.rst Wed Dec 26 00:03:35 2012
@@ -183,6 +183,18 @@
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 @@
+-----+-----+---------+
|fma |trunc|nearbyint|
+-----+-----+---------+
+| | | fmuladd |
++-----+-----+---------+
Performance
-----------
More information about the llvm-commits
mailing list