<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:spatel+llvm@rotateright.com" title="Sanjay Patel <spatel+llvm@rotateright.com>"> <span class="fn">Sanjay Patel</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [SLP vectorization] missed opportunity to use absolute value vector instruction (vpabsd)"
   href="http://llvm.org/bugs/show_bug.cgi?id=17172">bug 17172</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>spatel+llvm@rotateright.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [SLP vectorization] missed opportunity to use absolute value vector instruction (vpabsd)"
   href="http://llvm.org/bugs/show_bug.cgi?id=17172#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [SLP vectorization] missed opportunity to use absolute value vector instruction (vpabsd)"
   href="http://llvm.org/bugs/show_bug.cgi?id=17172">bug 17172</a>
              from <span class="vcard"><a class="email" href="mailto:spatel+llvm@rotateright.com" title="Sanjay Patel <spatel+llvm@rotateright.com>"> <span class="fn">Sanjay Patel</span></a>
</span></b>
        <pre>This got fixed in the SLP vectorizer / cost-model sometime in the last year:

$ ./clang -v
clang version 3.6.0 (221222)
Target: x86_64-apple-darwin13.4.0
Thread model: posix


$ ./clang -O3 -fomit-frame-pointer -march=corei7-avx vpsad.c -S -o -
    .section    __TEXT,__text,regular,pure_instructions
    .macosx_version_min 10, 9
    .globl    _foo
    .align    4, 0x90
_foo:                                   ## @foo
    .cfi_startproc
## BB#0:                                ## %entry
    vpabsd    (%rdi), %xmm0
    vmovdqu    %xmm0, (%rdi)
    retq</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>