<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 - shufflevector of load does not reduce load size"
   href="https://bugs.llvm.org/show_bug.cgi?id=42424">42424</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>shufflevector of load does not reduce load size
          </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>All
          </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>Matthew.Arsenault@amd.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>define <4 x half> @shuffle_v4f16_0101(<4 x half> addrspace(1)* nocapture
readonly %arg0, <4 x half> addrspace(1)* nocapture readnone %arg1) {
  %val0 = load <4 x half>, <4 x half> addrspace(1)* %arg0, align 8
  %shuffle = shufflevector <4 x half> %val0, <4 x half> undef, <4 x i32> <i32
0, i32 1, i32 0, i32 1>
  ret <4 x half> %shuffle
}

I would expect instcombine to recognize that only the low half of the load is
used, and reduce this to a load <2 x half></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>