<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I've reported this here:
      <a class="moz-txt-link-freetext" href="https://bugs.llvm.org/show_bug.cgi?id=51103">https://bugs.llvm.org/show_bug.cgi?id=51103</a></p>
    <div class="moz-cite-prefix">On 15/07/2021 04:04, Ryan Taylor via
      llvm-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABgVvXvT+NdbVyXbON57XqPfLUcRejCtEJVn8PCvokkpbiXNAA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Given a test case:
        <div><br>
        </div>
        <div>#define N 10<br>
          struct foo {<br>
            float a[N][N];<br>
            float b[N];<br>
          };<br>
          <br>
          void compute(struct foo *p)<br>
          {<br>
            for (int i = 0; i < N; i++) {<br>
              for (int j = 0; j < N; j++) {<br>
                p->a[i][j] += 0.1f * p->b[i];<br>
              }<br>
            }<br>
          }<br>
        </div>
        <div><br>
        </div>
        <div>LLVM isn't able to vectorize this code. I'm not sure what
          the issue is here as it seems to vectorize this code:</div>
        <div><br>
        </div>
        <div>#define N 10<br>
          struct foo {<br>
            float a[N];<br>
            float b[N];<br>
          };<br>
          <br>
          void compute(struct foo *p)<br>
          {<br>
            for (int i = 0; i < N; i++) {<br>
                p->a[i] += 0.1f * p->b[i];<br>
            }<br>
          }<br>
        </div>
        <div><br>
        </div>
        <div>Is this a known issue?</div>
        <div><br>
        </div>
        <div>-Ryan</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
    </blockquote>
  </body>
</html>