mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-11 08:29:25 +00:00
Update the docs about the fact that the loop vectorizer is enabled by default for -O3.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179060 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -21,19 +21,14 @@ The Loop Vectorizer
|
|||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
|
||||||
LLVM's Loop Vectorizer is now available and will be useful for many people.
|
LLVM's Loop Vectorizer is now enabled by default for -O3.
|
||||||
It is not enabled by default, but can be enabled through clang using the
|
The vectorizer can be disabled using the command line:
|
||||||
command line flag:
|
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ clang -fvectorize -O3 file.c
|
$ clang ... -fno-vectorize file.c
|
||||||
|
|
||||||
If the ``-fvectorize`` flag is used then the loop vectorizer will be enabled
|
At this point the loop vectorizer is only enabled for -O3, and will not work for -O2 or -Os.
|
||||||
when running with ``-O3``, ``-O2``. When ``-Os`` is used, the loop vectorizer
|
|
||||||
will only vectorize loops that do not require a major increase in code size.
|
|
||||||
|
|
||||||
We plan to enable the Loop Vectorizer by default as part of the LLVM 3.3 release.
|
|
||||||
|
|
||||||
Command line flags
|
Command line flags
|
||||||
^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^
|
||||||
|
Reference in New Issue
Block a user