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

    <tr>
        <th>Summary</th>
        <td>
            Should we remove unnecessary uses of -verify-machineinstrs in test/CodeGen?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            llvm:codegen
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            asb,
            arsenm,
            topperc
      </td>
    </tr>

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

<pre>
    Creating this to continue the discussion in https://github.com/llvm/llvm-project/pull/100992#discussion_r1694981952, although I'm not strongly opinionated on the issue.

Across all the different targets in the CodeGen tests there are 17751 RUN lines that pass `-verify-machineinstr`. At least on RISC-V, a lot of these are just added by habit and aren't strictly necessary. 

A quick test on my machine shows removing `-verify-machineinstr` reduces the time to run check-llvm-codegen-riscv (RISC-V was the only target I happened to have enabled) from ~14.44s to ~11.14s, which is about a 22% speedup.

We could investigate removing some of these uses and instead rely on the EXPENSIVE_CHECKS buildbots.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU0-PozYU_zTO5SkIHELCgUOanbSjSqtqR932tjL2A7xjbOr3nFEu-9krk3RHK7WHXgDzxOP3VxHZ0SN2Yv-TkFJRL6QU8pyfI6Gfvx85LAtGnc_7DxuVeAqxc-kVXXvY9MHcunNExdaPwJMl4AA6eLY-IfCEYCzpRGSDB-thYl5I7E5CXoS8jJan1Bc6zEJenLv-c9suMXxFzUJeluSckJeqLNtWCrl7X_clVk1bt8eq3WeooBxPIY0TPAt5mMEHBuIY_OhuEBbrbfCK0UDwKy5LlLAQ5QdRnu7Xk46BCJRzD-DDgBE9A6s4IlPGnwfnYPBn9MBITPlNRFARoToc9hV8-v0jOOsxTxTDoohANOX2itEOt-2s9GQ9Wk8cRVMWcGJwqIgzrk_PL-ft55UMuMAQhrye7uu_JmJQxqCB_gaT6i2D8ibPvJCHla3V7G7gUSORircCfuAHfyWrX1fc-W_zDR5ogKbwRhBxDtds5H_jhYgm6ZUcAtsZs98xedAT6tftap4OBkf022hJX0HI450WvKn7Z8G720NTeIZJLQt6NHnRpK4I6FXv0AjZwhDDDN-quqjrNVjfqqqoasoCvU1WT2AJVB8Sg4Kc1z3QgmjS8oOvfyDokJwB669IbEfF-M6VwozvQidCWlXNhFEZiJjjczf-6c_fnj6-PH9--nL-5en86wv0yTrTB6ZiY7qdaXet2mBXHaRsK7mTzWbq9nXV6kHWpRrUYA67EpXeV33TYymbY3PY2E6Wsi6PZVPKei-bQqojNlKbupVaD70RdYmzsq7I4hYhjps1ul1VyrKVG6d6dPTo8dqh3enhwKOzsVtt6dNIoi6dJab3XWzZYfcyrQK9PXRBSP57iO6ahAH-LRL3UiDlqj56IXaXTYqu-99VX2nRWvaV2bWTfwcAAP__bPGMiA">