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

    <tr>
        <th>Summary</th>
        <td>
            Consider adding DEBUG_COUNTER in SLPVectorizer
        </td>
    </tr>

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

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

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

<pre>
    We often hit issues in SLPVectorizer, like miscompiles. Adding a `DEBUG_COUNTER` to be able bisect over individual vectorization changes (as opposed to the entire pass running on a function) might be helpful with IR diffs to show miscompiles. [DSE example](https://github.com/llvm/llvm-project/blob/e45b44c630eb382eeb2ca8ed0fd52e973955e868/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp#L2242)

@alexey-bataev 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkk1v2zgQhn8NdRnEoMaiLB10SGJrsUCwW8RJeyz4MbLYUKRAUk7SX1_ISdEGPfVCnuYZvi8fmZI9eaKOiRsm9oVc8hhiJ2lR0j-lQgXz2n0hCEMmD6PNYFNaKIH1cLz79Jl0DtF-p8jwFpx9Iphs0mGaraO0gWtjrD-BBFbz_eHm8Z-vt_8__vdwuGc1hxxAEUjlCJRNpDOEM0Ww3tizNYt0cH7Hy2yDBz1Kf6IEDBuZIMxzSGRWSh4JyGcbCWaZEsTF-3Vt8CBhWLxexxm2MNnTmNelI7l5WBw82zzCv_dg7DCkFZXG8PwxAhM3--MB6EVOsyMm9gybMec5se01w55hf7J5XNRGh4lh79z553U1x_CNdGbYKxcUw54qoapK11tOatsgkUItGzJ8MAKp3W1bIaipm984dp17iNKnIcQpMeyPWjoZGfZ7kuaYQ6SDs5P1l5I2ep4Zbu8QK2TYMr5n_Pr9rLh09EKvV0pmSWcoTLc17baVBXXlDndNyUtRFmPXcjK0q-uK81qgNK1oNda12A2q5qrihe2QY1VyXpZtKUS5aeqm4lTpVqiq1dqwitMkrdusMTYhnoqLNl1Z8h2KwklFLl2cQ_T0_CYVQ1wVjN2lPLWcEqu4symnX5hss6PuNvhkDUWQb359UOsPNYsluu6vv-zNc4b9-5vPHf4IAAD__4J_CPk">