<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - -Rpass-missed=loop-vectorize says to use -Rpass-analysis=loop-vectorize even if I already am"
href="https://llvm.org/bugs/show_bug.cgi?id=28376">28376</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-Rpass-missed=loop-vectorize says to use -Rpass-analysis=loop-vectorize even if I already am
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sean@rogue-research.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=16664" name="attach_16664" title="Repro case">attachment 16664</a> <a href="attachment.cgi?id=16664&action=edit" title="Repro case">[details]</a></span>
Repro case
If I compile passing the -Rpass-missed=loop-vectorize flag I'm told "use
-Rpass-analysis=loop-vectorize for more info", ex:
$ clang -S -fvectorize -O3 -Rpass-missed=loop-vectorize basic.cxx
basic.cxx:3:5: remark: loop not vectorized: use -Rpass-analysis=loop-vectorize
for more info [-Rpass-missed=loop-vectorize]
for (int i = 0; i < Length; i++)
^
so if I then add -Rpass-analysis=loop-vectorize as instructed, it outputs:
$ clang -S -fvectorize -O3 -Rpass-missed=loop-vectorize
-Rpass-analysis=loop-vectorize /basic.cxx
basic.cxx:5:9: remark: loop not vectorized: loop contains a switch statement
[-Rpass-analysis=loop-vectorize]
switch(A[i])
^
basic.cxx:3:5: remark: loop not vectorized: use -Rpass-analysis=loop-vectorize
for more info [-Rpass-missed=loop-vectorize]
for (int i = 0; i < Length; i++)
^
It still says to "use -Rpass-analysis=loop-vectorize for more info" even though
I already am! :) Not very useful/clever. :)
This causes lots of noise.
$ clang --version
clang version 3.9.0 (trunk 274259)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>