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

    <tr>
        <th>Summary</th>
        <td>
            [LLVM] The output of WarnMissedTransformationsPass seems not controllable
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            llvm,
            llvm:support
      </td>
    </tr>

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

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

<pre>
    The output of WarnMissedTransformationsPass seems not able to be controlled by ` -pass-remarks-missed` and `-pass-remarks-analysis`. In `llvm/test/Transforms/LoopTransformWarning/unrolling-remarks-missed.ll`, the test still passes after I removed ` -pass-remarks-missed` and `-pass-remarks-analysis`.  It looks inconsistent with the original design intention.

The practical affect of this is, now users may suffers from the a lot of warning but they can't do anything about it if they can't modify the source code (image the source code comes from third party libraries.)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykk0GPpDYQhX-NuZQagWmgOXDozKilkWalHFZJrgUYqKyxias8I_59ZHZ3ok1u2RvUM1WveP6QmRZnTK_qX1T9nGGU1Yf-aY3o_qI_YpcNfjr6z6sBH2WPAn6G3zG4T8Rsps8BHc8-bCjkHf-KzMDGbAzOC-BgDYiHwcDonQRvrZlgOEA1BVx2ZL4Es2H4wpftbJfq6Kak_yijQ3swsWqKHF5cOmDt26b0QwyL0o8PI6z049X7_aOQzJJblH5ElxyQW_41NbdWNYXSTyCrgdQQWMhaSBYMA85iArxAMJt_M9NPuocXAev9FwZyo3dMLMYJvJOs53wfaCGHFiaTogFySSfvclXcVXFPUewBR6ERLeA8m_EMRVZiIE5rOP8OkU1g2PAAjvOcnufgt3MCgvXnJ-9ffw0MUZJwwIhO6VZg8oDukDWJOPgoQAI0_3ho8xPNx9mRfQxjCnkyoPSNNlzMf4TRb-bDBYUJdgxygKUhYCDDudJdNvXV1FUdZqYv20Zfy7Yrqmztr8U8TVXRlCPeuratmrqdcRzKazkX3W3uMup1oeuyLJriVpXXKm9wrvW1q01bDpW5oboWZkOyebo4uQ9LRszR9GXTtLrJLA7G8omB1l_vllb66ftLdee47z5IKtfPWehT-TLEhdW1sMTC_zQWEnsS9fr62ydVP8P_w-c7MwmjLAbbryI7q-qu9EPpx0KyxiEffcLgGw2nqT34P82YqDg3TER8W_Kt138HAAD__xAfWVM">