mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
Brag about function call vectorization in the docs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176292 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1abc00b6d1
commit
19949d8b86
@ -245,6 +245,17 @@ See the table below for a list of these functions.
|
||||
| | | fmuladd |
|
||||
+-----+-----+---------+
|
||||
|
||||
The loop vectorizer knows about special instructions on the target and will
|
||||
vectorize a loop containing a function call that maps to the instructions. For
|
||||
example, the loop below will be vectorized on Intel x86 if the SSE4.1 roundps
|
||||
instruction is available.
|
||||
|
||||
.. code-block:: c++
|
||||
|
||||
void foo(float *f) {
|
||||
for (int i = 0; i != 1024; ++i)
|
||||
f[i] = floorf(f[i]);
|
||||
}
|
||||
|
||||
Partial unrolling during vectorization
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
Loading…
x
Reference in New Issue
Block a user