<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:sharparrow1@yahoo.com" title="Eli Friedman <sharparrow1@yahoo.com>"> <span class="fn">Eli Friedman</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - big vector causes code explosion (no looping with vector attributes?)"
   href="http://llvm.org/bugs/show_bug.cgi?id=17417">bug 17417</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>sharparrow1@yahoo.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - big vector causes code explosion (no looping with vector attributes?)"
   href="http://llvm.org/bugs/show_bug.cgi?id=17417#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - big vector causes code explosion (no looping with vector attributes?)"
   href="http://llvm.org/bugs/show_bug.cgi?id=17417">bug 17417</a>
              from <span class="vcard"><a class="email" href="mailto:sharparrow1@yahoo.com" title="Eli Friedman <sharparrow1@yahoo.com>"> <span class="fn">Eli Friedman</span></a>
</span></b>
        <pre>ext_vector_type is supposed to be used to represent a machine vector type or
something like it; the generated code is always straight-line code, with no
loops.  If you expect the generated code to contain a loop, you should write a
loop, and it will (hopefully) be vectorized for you.  For example:

void foo(float* restrict x, float * restrict y) {
  for (unsigned i = 0; i < 800; ++i)
    *x++ += *y++;
}

[...]
    movups    -16(%rdi,%rax,4), %xmm0
    movups    -16(%rsi,%rax,4), %xmm1
    addps    %xmm0, %xmm1
    movups    (%rdi,%rax,4), %xmm0
    movups    (%rsi,%rax,4), %xmm2
    movups    %xmm1, -16(%rdi,%rax,4)
    addps    %xmm0, %xmm2
    movups    %xmm2, (%rdi,%rax,4)
    addq    $8, %rax
    cmpq    $804, %rax              ## imm = 0x324
    jne    LBB0_1
[...]</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>