<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59413>59413</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm-reduce function reduction produces invalid reductions for functions in llvm.used
</td>
</tr>
<tr>
<th>Labels</th>
<td>
llvm-reduce
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
arsenm
</td>
</tr>
</table>
<pre>
When the function reduction tries to delete a function in used, it hits this verifier error:
invalid llvm.compiler.used member
ptr null
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskM-O2yAQh58GLmgjMtiJfeDQduVX6BnMOJ4KG2uASH37Cme720Mv_JtvRvw-lzM9dkQr-u-if5euljWxdZxx36RP4bf9ueKuyopqqftcKO2KMdTXqTBhViWpgBELKvcF0a5qxiDgh6KiVipZlZWyeiLTQsgKmRML803od6E_VtqfLlJQMT63y5y2gyLypc1RG24e-YUdhdVeY3zdZLAmjGZ0Eu31dtd9N970Xa7WeBd8P8NoFjBD7_EecMDOmJuD2xx6SRY0wBX0qK_GwP0y6nFAuC5u8N0AC4pO4-YoXs4PJX5Iyrmi7cfuamR0HmM-1QE04u00gwKguWR7vvn6yKLTkXLJX3MKlYj2n6b_6T04tVJWf718lrJaEn-2NODlrKmSlaNdSzlyswuTgOlBZa2-GRUwNfBjezs4_cK5CJjOYFnAdGb7EwAA__9-e7Nt">