<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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] Single extra copy of for loop breaks vectorization of the previous 4 copies."
   href="https://bugs.llvm.org/show_bug.cgi?id=43161">43161</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[loop vectorizer] Single extra copy of for loop breaks vectorization of the previous 4 copies.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>9.0
          </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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>manolismih@windowslive.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22446" name="attach_22446" title="Code posted on godbolt">attachment 22446</a> <a href="attachment.cgi?id=22446&action=edit" title="Code posted on godbolt">[details]</a></span>
Code posted on godbolt

Hello, could you please have a look at this code posted on godbolt.org:
<a href="https://godbolt.org/z/O-O-Q7">https://godbolt.org/z/O-O-Q7</a>
(code also attached in case godbolt link breaks)

The problem is that inside the compute function, only the first loop vectorizes
while the rest copies of it don't. But if I remove any of the for loops, then
the rest vectorize successfully. The message "Cannot identify array bounds" is
not helpful.</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>