<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylVMuO2zgQ_Br50gihlx866JBMECRA9rK7wJ4psSUxoUiFD3tmvn6blDWOJ5PDYgFLFC2xq7qqyM6Ip_YzKmWy8gGy_GOWv_8HYQjPzyjATwhKnWdwnnvZQ2_mRSq09GcPRclyloPRMAfl5aIQnAm2RwfBST2m1WbxcpbPtJq-ixOjHfAzl4p3tMBP1oRxSvUGY6EGbvtJeux9sFQoK0-Pp0Ok9nio48DtHIdZLi4rG7YSXu9__46sw3HgRJEaihhnbqUJLr7vpOYrJTNEug5_4vY2dS1ASAHaeMBH6WG0vMchKPXEgISb-JluQQuLIlW9sojjTIsdwXAPPQ8Or4gbPcdu-qcy3HveT8Sag-cWhljmIv1EczdzpcCFzqGPIlUkxq2HDYtB1OQFmVsC84aYgdTA_KNPNV2c-fShJc0Xo0V0bzBKkHhRMSQad8akrJQnMgM2N4AxRiReGUKIkoCVM0Q6K8s1IPSwle-N9lzqCMi6_sonYl4mSaCvFEotvDh05z6JdjFBCfgWnAclv5O8BiwuxvpfyzjowpjGtfFrUn7n7CtfSPq47FbvgjCiRstjxsjeKcYkXj3XsFhzliK5PYMciNOPIMmEze71_sVf-XcEQNhIZYag-xg7rqR_ikvjNunTV4lhRBhlZAQzOsdHjLvxMj0legu3tA2C4vbW4JuZJpKx6S2pqbXk0xo56oqMjLnVq7hb33f6Z_sPJOmfSW_2LJds_5ESMnlPG7V6n5Wf6DdSeEPHCIgmcateh3ck0TdKFk1TAGg8Hg-HQ9PQ033V-4TBTrSVaKqG73jwk7EtKf2uaZpdsKr9z-DSuZDQ9-WpbnZTeyjqU9OIouTlYS_2pRiwquqm2BfY4VHgjnKIyrXUPGVa4wVSCXqm9nf_n4Fsy7wsirKs8rou6oIV-annR1HkTXXsm2OV1TnOtB1YrMOMHXe2TSVjvOmlko7OlZeX3Dk5asREmBh66RW2f2zH99evD_CwReWvW7rXM-en8zIeNUIOA-1v7d8MFdulVtrUx7-H4DCb>52849</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Multiple LLC Compiler Segfaults with a combination of different optimization options.
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          vid-999
      </td>
    </tr>
</table>

<pre>
    Hello, 
We fuzzed the llvm static compiler llc 12.0.0 on multiple sources using the optimization options available through llc for 4 architectures (x86, x64, arm, mips).

The llvm static compiler segfaulted for various combinations of these available optimization options and did not exit gracefully. We have hundreds of compile commands that cause these segfaults. 
We have attached a tar file with a small subset (3) of these commands. The commands are stored in .txt files in the corresponding folder for each architecture, (arm , mips ...)

There is also a "source" folder containing .bc files for which these segfaults are available.

We would just like to report these segfaults as bugs as the compiler did not exit gracefully.
We have all the segfaults we generated at hand and can provide them if required. 

It would be a great functionality if llc could exit and give a message on why the particular compiler optimization options cannot compile the source file rather than just segfault.

[bugReport.zip](https://github.com/llvm/llvm-project/files/7766699/bugReport.zip)

 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVVMtu2zAQ_Br5sgihh21ZBx3SBEULpJe2QM8URUlMKVLlw6-v75Ky4jhNDgVsUbTEndmZWTe6PdVfuJQ6yR8gSR-T9P4Xh86fz7wFN3CQcj-CddQJBkyPk5Dc4I8MspykJAWtYPTSiUlysNobxi14K1QfT-vJiVGc8TS-FzZaWaB7KiRt8IAbjPb9EOt12sAaqGGDcJw5b7BQku-Ou22gdtyuw0LNGJZRTDbJKzITnq8_PyJred9RpIgNBYw9NUJ7G543QtGZku4CXctfcXufumqhFS0o7YAfhYPeUMY7L-WJAAo30D1evGoNb2PVC4uwjnjYIgx1wKi3_IK40LPkqn8sQ52jbEDWFBw10IUyB-EG3NuRSgnWN5a7IFKBYlx7WLAIBE1ekKlBMKeRGQgFxB1drGnDzsUXDWo-adUG9zotWx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