Skip to content
Snippets Groups Projects
Commit 00cadb3e authored by Nadav Rotem's avatar Nadav Rotem
Browse files

Add a small example which shows a vectorizable loop with a non-pow-of-two count

llvm-svn: 166169
parent d6d9ccca
No related branches found
No related tags found
No related merge requests found
...@@ -466,9 +466,17 @@ Release Notes</a>.</h1> ...@@ -466,9 +466,17 @@ Release Notes</a>.</h1>
<p>In addition to many minor performance tweaks and bug fixes, this release <p>In addition to many minor performance tweaks and bug fixes, this release
includes a few major enhancements and additions to the optimizers:</p> includes a few major enhancements and additions to the optimizers:</p>
<p> Loop Vectorizer - We've added a basic loop vectorizer and we are now able <p> Loop Vectorizer - We've added a basic loop vectorizer and we are now able
to vectorize small loops. The loop vectorizer is disabled by default and to vectorize small loops. The loop vectorizer is disabled by default and
can be enabled using the -mllvm -vectorize flags. </p> can be enabled using the -mllvm -vectorize flags. We can vectorize this code:
<pre class="doc_code">
for (i=0; i&lt;n; i++) {
a[i] = b[i+1] + c[i+3] + i;
}
</pre>
</p>
<ul> <ul>
<li>...</li> <li>...</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment