<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:llvm-dev@redking.me.uk" title="Simon Pilgrim <llvm-dev@redking.me.uk>"> <span class="fn">Simon Pilgrim</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - vector operations fail to optimize to _mm_testz_si128 / _mm256_testz_si256"
   href="https://bugs.llvm.org/show_bug.cgi?id=37506">bug 37506</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;">Fixed By Commit(s)</td>
           <td>
                
           </td>
           <td>0101fb73de71132bd5b25cfadc63974c692dbc5b
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - vector operations fail to optimize to _mm_testz_si128 / _mm256_testz_si256"
   href="https://bugs.llvm.org/show_bug.cgi?id=37506#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - vector operations fail to optimize to _mm_testz_si128 / _mm256_testz_si256"
   href="https://bugs.llvm.org/show_bug.cgi?id=37506">bug 37506</a>
              from <span class="vcard"><a class="email" href="mailto:llvm-dev@redking.me.uk" title="Simon Pilgrim <llvm-dev@redking.me.uk>"> <span class="fn">Simon Pilgrim</span></a>
</span></b>
        <pre>I'm going to resolve this - InstCombine will now expand MOVMSK intrinsics to a
generic bitcast(trunc(icmp_slt(x))) pattern that can be optimized much further,
and the backend does a good job of lowering such reduction patterns to PTEST
where appropriate.

In this case we still use MOVMSK as we can avoid the constant load and just
perform it as a CMP+MOVMSK; after 0101fb73de71132bd5b25cfadc63974c692dbc5b we
remove all ashr/icmp ops and just use MOVMSK to directly extract the signbits
of the loaded vectors.</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>