projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a48677
)
Doc: add fmuladd to the list of vectorizeable functions. Thanks hfinkel.
author
Nadav Rotem
<nrotem@apple.com>
Wed, 26 Dec 2012 06:03:35 +0000
(06:03 +0000)
committer
Nadav Rotem
<nrotem@apple.com>
Wed, 26 Dec 2012 06:03:35 +0000
(06:03 +0000)
llvm-svn: 171094
llvm/docs/Vectorizers.rst
patch
|
blob
|
history
diff --git
a/llvm/docs/Vectorizers.rst
b/llvm/docs/Vectorizers.rst
index
61b7209
..
0d5e349
100644
(file)
--- 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
-----------