diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-04-08 21:34:49 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-04-08 21:34:49 +0000 |
commit | fe47d58cf06ec379fd1136f476b8123f52f78a2d (patch) | |
tree | 2efb1271a09837920f4b6d9af93c9bd5f9285933 /llvm/docs | |
parent | 4f6791cafb710420957c3a2e63fb7aa5e75005ec (diff) | |
download | bcm5719-llvm-fe47d58cf06ec379fd1136f476b8123f52f78a2d.tar.gz bcm5719-llvm-fe47d58cf06ec379fd1136f476b8123f52f78a2d.zip |
Update the docs about the fact that the loop vectorizer is enabled by default for -O3.
llvm-svn: 179060
Diffstat (limited to 'llvm/docs')
-rw-r--r-- | llvm/docs/Vectorizers.rst | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/llvm/docs/Vectorizers.rst b/llvm/docs/Vectorizers.rst index e2d3667bc11..2c5604496b3 100644 --- a/llvm/docs/Vectorizers.rst +++ b/llvm/docs/Vectorizers.rst @@ -21,19 +21,14 @@ The Loop Vectorizer Usage ----- -LLVM's Loop Vectorizer is now available and will be useful for many people. -It is not enabled by default, but can be enabled through clang using the -command line flag: +LLVM's Loop Vectorizer is now enabled by default for -O3. +The vectorizer can be disabled using the command line: .. 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 -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. +At this point the loop vectorizer is only enabled for -O3, and will not work for -O2 or -Os. Command line flags ^^^^^^^^^^^^^^^^^^ |