summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Redmond <paul.redmond@intel.com>2013-05-30 17:22:46 +0000
committerPaul Redmond <paul.redmond@intel.com>2013-05-30 17:22:46 +0000
commiteccbb323ea9d3a0587f8e23a3f7bf6e2686f54c5 (patch)
tree4c2660cd8741e092fe6a6f85d32feb318df572f8
parentcf6bde9e2b9f7096346d75c9fe961158919d60e3 (diff)
downloadbcm5719-llvm-eccbb323ea9d3a0587f8e23a3f7bf6e2686f54c5.tar.gz
bcm5719-llvm-eccbb323ea9d3a0587f8e23a3f7bf6e2686f54c5.zip
Revise llvm.vectorizer.width documentation
- clarify that vectorizer.width only applies if the vectorizer decides to vectorize. llvm-svn: 182938
-rw-r--r--llvm/docs/LangRef.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 72648edbcb2..e07d8fe8dba 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -2680,8 +2680,10 @@ determined automatically.
'``llvm.vectorizer.width``' Metadata
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-This metadata forces the loop vectorizer to widen scalar values to a vector
-width of ``N`` rather than computing the width using a cost model.
+This metadata sets the target width of the vectorizer to ``N``. Without
+this metadata, the vectorizer will choose a width automatically.
+Regardless of this metadata, the vectorizer will only vectorize loops if
+it believes it is valid to do so.
The first operand is the string ``llvm.vectorizer.width`` and the second
operand is an integer specifying the width. For example:
OpenPOWER on IntegriCloud