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

    <tr>
        <th>Summary</th>
        <td>
            [SLP, -slp-revec]  Assertion `DemandedElts.getBitWidth() == Ty->getNumElements() && "Vector size mismatch"' failed. 
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    opt -mtriple=systemz-unknown -O3 -o /dev/null -mcpu=z15 ./tc_slp_revec.bc -force-vector-width=4  -slp-revec -disable-licm-promotion


...
#10 0x000002aa01f3e642 llvm::slpvectorizer::BoUpSLP::reorderGatherNode

[tc_slp_revec.tar.gz](https://github.com/user-attachments/files/17877127/tc_slp_revec.tar.gz)

@HanKuanChen 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8Ul1vnDoQ_TXDi2UEY1iWBx52Q7hX91ZppH49RsaeXdwajGyzafbXV7CRmvShfvBo7PEczzlHhmDOE1ED5RHKNpFLHJxv_nPTYwhuypPe6ZfGzZHxMXozWwLRhpcQabzyZfoxueeJ8Y-CcccAO00XwG5arGV8VPMCor3mJUsBu6iegp2fPF1Ipb1i_OS8In4hFZ3nz0bHAURbMMaDnflWxrg2QfaWuDVq5LN3o4vGTZC1kB3e7mmavqYo8oxlP7N1oZRZfhK0K5BZexlBHEAcgp1voOZK_nZ0dF_mTx8eb4kn5zX5f2QcyD84Te_gyuO7QaL06fkKZQu4H2Kcw9oDO8DubOKw9KlyI2C3BPJcxijVMNIUA2B3MpbWmFf7qsqx-pOi185Yv4Mvsn_l9P8ip7uBJpboRuha1DKhJq8Eirwsd0UyNFhhQX2thMjrClGcdJlVuqg0ZShF3yemwQyLPEdELHZZkWql1b7eFUJoQZlSUGQ0SmPTlbjU-XNiQlioyfNK1CKxsicbNtcgTvTMtltAXE3km_UR75dzgCKzJsTwu0000W52WwnHuzdyQ9kydgiB_Coyg13W0ignTfrexpCeKR5N_LYZBfeANQPRgmjZ5xcO4v5M8WEZ7y29EnyrwB3gjgHi101yFsyV2GjCKKMa1u9ixU7SWNIpSxZvm7-IuFnoFlYvficVAbtt8E3IGzOXBn8FAAD__0deCSU">