<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/96884>96884</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [VectorCombine] foldShuffleToIdentity can't handle BITCAST nodes
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            missed-optimization
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          RKSimon
      </td>
    </tr>
</table>

<pre>
    Noticed on #96882 - SSE/AVX code tends to result in a lot of bitcasts as the `__m128i / __m256i / __m512i` types are always treated as `vXi64`.

CC @davemgreen 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxEkUGPm0wMhn-NuViJBgMDHDhksx_S6pN6aFarvUUDY8JUw0zEmFTpr6-SrdqL7Ytf63lsUnKXwNxB9QLVa2Y2mePaff__5JYYsiHae_ctihvZYgwIVLS6aQh3eDr9B9QfPj5xjJZRONiEEnHltHlBF9Cgj4JxwsHJaJIkNAllZgStzuclp8YhUI_n80KV_jtXOTnQCuV-5YRmZTT-p7knlJWNsH2kgFa3T6dL0GoP6hXU4asejwilsubGy2VlDpjZrrBt0ZqMu7zO27IhUk02d3k7MCk71Y0Zak3FNFVacZvnypZtberMdaSoVJpq1Va6bPZ1WzM3ha1sqfLRaCgVL8b5vfe3ZR_XS-ZS2rh7CCozbwb26amVaHEpsd3Fq7jF_TLiYgCih--1e2zvhu2SoFTeJUn_8sSJf37mg0eJ6zEugwsM1StO0dvTvE2T5_f4ZjmIkzuOJgDVgrMJ1jO-vL0fD6d3DNFyyrbVd7PINUFxAOqB-ouTeRv2Y1yA-sfRP213XeMPHgWofxIloP4L6tbR7wAAAP__niawdA">