<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 - Failure to scalarize comparison of unform-op(broadcast) vs broadcast"
   href="https://bugs.llvm.org/show_bug.cgi?id=37463">37463</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Failure to scalarize comparison of unform-op(broadcast) vs broadcast
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Scalar Optimizations
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>listmail@philipreames.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In the example below, we should be able to replace the sequence with a
broadcast of a scalar comparison:
  %52 = insertelement <4 x i64*> undef, i64* %51, i32 0                         
  %53 = shufflevector <4 x i64*> %52, <4 x i64*> undef, <4 x i32>
zeroinitializer                                                                 
  %54 = lshr <4 x i64> %33, <i64 21, i64 21, i64 21, i64 21>                    
  %55 = insertelement <4 x i64> undef, i64 %35, i32 0                           
  %56 = shufflevector <4 x i64> %55, <4 x i64> undef, <4 x i32> zeroinitializer 
  %57 = icmp eq <4 x i64> %56, %54

Even if we don't get to the scalar form, we definitely should be sinking the
lsr to be a scalar computation before the broadcast given both arguments are
broadcasts of scalars.</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>