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

    <tr>
        <th>Summary</th>
        <td>
            llc doesn't output anything when used with `-stop-after`/`-stop-before`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            documentation
      </td>
    </tr>

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

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

<pre>
    https://github.com/llvm/llvm-project/blob/9eeb0293e27c0f1b44304fd9681dcd88fd9edc0a/llvm/docs/MIRLangRef.rst#mir-testing-guide

Uses this command as an example to produce `.mir`:
`llc -stop-after=machine-cp bug-trigger.ll > test.mir`

However, when I try it, `llc` produces empty stdout. I have to pass an output file explicitly for it to work, i.e.
`llc -stop-after=machine-cp bug-trigger.ll -o test.mir`

Creating an issue, because I'm not sure if this was an intentional change (in which cases the docs need to be updated) or not (in which case it needs to be fixed).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycU8uu5CYQ_Rq8KbWFcfvBwovJ3LRypWQzUj4AQ9kmwWBBcfv230e405pRpCySjS0h6nAedVRKdvWIE-t-Yt1bpTJtIU5GeevU7qo5mMe0ER2JtV-YuDFxWy1tea512Jm4Offx-l2OGP5ATUzcZhdmJm4SceZCtigGzZdmvl5bfl2M7MfGaDOOi5FoNFffcUzQiYnbb-_fflV-_YZLHRMx0e42XggTWb9e1mwNMv7G-Jfn9_eECWizCXTYd-UNqATKA36q_XAIFOCIwWSNwHpe7zaynhc5T4yeO6fhkigcF7UQRta-7Upv1uNFHzDn9ULRrivG2jlg7c9QmLxgfuDxS7jjB0YmvsJ9Qw_vQPEBlsrB8xXW8xeVBLgf9IBEJmSq4R029fHkqtJJP2Q6MsFiHQJ-Hs5qS-4BS4hgqVy8h_hnwbY11v9LyyX8m5SvEVUxu_CwKWUs78yoVU4I70wMO_hAkHJEsMvT_PvTdesJPdnglQO9Kb8iMDFaD_fN6g20eqaFULIGj2iKlhkhH0YRGiYkhHjC_3Ou6C4D6e-JxX6e9-vKTK2RrVQVTk0vu1EMvWyrbZJcN6Yx47xw0cixlbrl4yIW0XTqKvhS2Ulw0XIphqZrrl1bd6LrTdvxRvaNnOXArhx3ZV1dNrQOca1OP6Z-6PqhcmpGl87yCGGCzjt6UkU9E6L0KU5nNea8JnblziZK35HIksOpJGYCJs_EQK_UlX_QVgI4NyknNHC3tJU9-jHdnpdOvs5mXEJE1vMqR_ffW3sKK_U7tf0VAAD__xzbVGQ">