<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 --- - loop vectorizer causes dominance violation"
   href="https://llvm.org/bugs/show_bug.cgi?id=30742">30742</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>loop vectorizer causes dominance violation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>eric.schweitz@pgroup.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=17462" name="attach_17462" title="-loop-vectorize bug">attachment 17462</a> <a href="attachment.cgi?id=17462&action=edit" title="-loop-vectorize bug">[details]</a></span>
-loop-vectorize bug

The attached program shows a failure in opt's loop vectorizer pass. I believe
this failure has been present for several releases, and I have replicated it
with trunk, 3.9, etc.

% opt bug.bc -verify -disable-output
% opt bug.bc -loop-vectorize -disable-output
Instruction does not dominate all uses!
  %49 = select i1 %48, i32 1, i32 %47
  %43 = add i32 %49, -7
LLVM ERROR: Broken function found, compilation aborted!</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>