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

    <tr>
        <th>Summary</th>
        <td>
            [SLPVectorizer]  Assertion `I->use_empty() && "trying to erase instruction with users."' failed.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            vectorization
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            alexey-bataev
      </td>
    </tr>

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

<pre>
    clang-16 -cc1 -triple s390x-ibm-linux -target-cpu z13 -O3 -w -vectorize-slp -o /dev/null -emit-llvm -x ir tc_SLP.ll
[testcase.tar.gz](https://github.com/llvm/llvm-project/files/10035712/testcase.tar.gz)

...
#9 0x000002aa022b2284 llvm::SLPVectorizerPass::runImpl
...

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUkuP2yAQ_jX4gkCA3wcfUqWVtqrUSJV6XWF74lBhY_HIJvn1HbtZVd1bLcwwPOZ7QO_GezdYvUxMVpQNg6QserNaoCFvxY2ZfmbWLOmG89pPENmwJvqQOWXf8X-j7ApDdN48gAW7UuYoUV9GuGK_JGspg9lEZu11puxGjadxeP3x7cStJeJIxIGUnyKEOOgAHBH49CDlkajmEuMaSH7AOtgmEy-p54ObMdmKPQNbvfuFBDA9GwsBoxQiL2upcPixsGqfmHvPOX-mKm-puIntU1oLpXqlmoLuOMggPyDhn-8y_UmH8Gfap-VlXu2Hchl0sqqaWgmpRDZ2-djmrc6iiRY6lPtPMRRL6SEE8NG4hZJKvDCSf04BXmFe4x2dQNroaYUNg4r-bpaJRkfBozRqlhB9GvbTb-gSxaM-cNxJVE3PGl0ZeZa87f7bURNC2i0tW1Hm2aVrqgL6eqxEDXVZSdWc26YpdN9qXbTlWWVW92DDJhLx3x-G3rhtfMpjZjqF9kopayWVEoJXvS7GSte6bvWAgRQCZiTNNy7c-Snz3U6rT1PARWtCDH8X8SrMtAA8IbWFG9xZr6PeXuAOqVO8ON99dcspBLdku6pul_QbUfPuFw">