<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 vectorize none-of 4xbyte"
   href="https://bugs.llvm.org/show_bug.cgi?id=51591">51591</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Failure to vectorize none-of 4xbyte
          </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>lebedev.ri@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre><a href="https://godbolt.org/z/4WcY9aW5r">https://godbolt.org/z/4WcY9aW5r</a>
<a href="https://alive2.llvm.org/ce/z/RgJ439">https://alive2.llvm.org/ce/z/RgJ439</a>

We need to either/or do a better job of canonicalizing this in instcombine,
or teach SLPVectorizer about this.

SLP: Analyzing blocks in _Z3fooPKh.
SLP:  bundle:   %cmp.i.i.i.i.i.i = icmp eq i8 %2, -1
SLP:  initialize schedule region to   %cmp.i.i.i.i.i.i = icmp eq i8 %2, -1
SLP:  extend schedule region end to   %cmp.i.i59.i.i.i.i = icmp eq i64 %3,
65280
SLP:  extend schedule region end to   %cmp.i.i60.i.i.i.i = icmp eq i64 %4,
16711680
SLP:  extend schedule region end to   %cmp.i.i61.i.i.i.i = icmp eq i64 %5,
4278190080
SLP: try schedule bundle [  %cmp.i.i.i.i.i.i = icmp eq i8 %2, -1; 
%cmp.i.i59.i.i.i.i = icmp eq i64 %3, 65280;  %cmp.i.i60.i.i.i.i = icmp eq i64
%4, 16711680;  %cmp.i.i61.i.i.i.i = icmp eq i64 %5, 4278190080] in block entry
SLP:       update deps of [  %cmp.i.i.i.i.i.i = icmp eq i8 %2, -1; 
%cmp.i.i59.i.i.i.i = icmp eq i64 %3, 65280;  %cmp.i.i60.i.i.i.i = icmp eq i64
%4, 16711680;  %cmp.i.i61.i.i.i.i = icmp eq i64 %5, 4278190080]
SLP:       update deps of /   %cmp.i.i59.i.i.i.i = icmp eq i64 %3, 65280
SLP:       update deps of /   %cmp.i.i60.i.i.i.i = icmp eq i64 %4, 16711680
SLP:       update deps of /   %cmp.i.i61.i.i.i.i = icmp eq i64 %5, 4278190080
SLP:       update deps of   %or.cond27 = select i1 %or.cond, i1 true, i1
%cmp.i.i60.i.i.i.i
SLP:     gets ready on update:   %or.cond27 = select i1 %or.cond, i1 true, i1
%cmp.i.i60.i.i.i.i
SLP:       update deps of   %or.cond = or i1 %cmp.i.i.i.i.i.i,
%cmp.i.i59.i.i.i.i
SLP:   schedule   %or.cond27 = select i1 %or.cond, i1 true, i1
%cmp.i.i60.i.i.i.i
SLP:    gets ready (def):   %or.cond = or i1 %cmp.i.i.i.i.i.i,
%cmp.i.i59.i.i.i.i
SLP:   schedule   %or.cond = or i1 %cmp.i.i.i.i.i.i, %cmp.i.i59.i.i.i.i
SLP:    gets ready (def): [  %cmp.i.i.i.i.i.i = icmp eq i8 %2, -1; 
%cmp.i.i59.i.i.i.i = icmp eq i64 %3, 65280;  %cmp.i.i60.i.i.i.i = icmp eq i64
%4, 16711680;  %cmp.i.i61.i.i.i.i = icmp eq i64 %5, 4278190080]
SLP: We are able to schedule this bundle.
SLP:  cancel scheduling of [  %cmp.i.i.i.i.i.i = icmp eq i8 %2, -1; 
%cmp.i.i59.i.i.i.i = icmp eq i64 %3, 65280;  %cmp.i.i60.i.i.i.i = icmp eq i64
%4, 16711680;  %cmp.i.i61.i.i.i.i = icmp eq i64 %5, 4278190080]
SLP: Gathering cmp with different predicate.
SLP: Check whether the tree with height 1 is fully vectorizable .
SLP: Trying to vectorize a list of length = 2.
SLP: Analyzing 2 operations 
SLP:  bundle:   %cmp.i.i.i.i.i.i = icmp eq i8 %2, -1
SLP:  initialize schedule region to   %cmp.i.i.i.i.i.i = icmp eq i8 %2, -1
SLP:  extend schedule region end to   %cmp.i.i59.i.i.i.i = icmp eq i64 %3,
65280
SLP: try schedule bundle [  %cmp.i.i.i.i.i.i = icmp eq i8 %2, -1; 
%cmp.i.i59.i.i.i.i = icmp eq i64 %3, 65280] in block entry
SLP:       update deps of [  %cmp.i.i.i.i.i.i = icmp eq i8 %2, -1; 
%cmp.i.i59.i.i.i.i = icmp eq i64 %3, 65280]
SLP:       update deps of /   %cmp.i.i59.i.i.i.i = icmp eq i64 %3, 65280
SLP:     gets ready on update:   %cmp.i.i.i.i.i.i = icmp eq i8 %2, -1
SLP: We are able to schedule this bundle.
SLP:  cancel scheduling of [  %cmp.i.i.i.i.i.i = icmp eq i8 %2, -1; 
%cmp.i.i59.i.i.i.i = icmp eq i64 %3, 65280]
SLP: Gathering cmp with different predicate.
SLP: Check whether the tree with height 1 is fully vectorizable .</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>