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

    <tr>
        <th>Summary</th>
        <td>
            llvm-reduce: ../tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp:64: void replaceFunctionCalls(llvm::Function *, llvm::Function *): Assertion `CI->getCalledFunction() == OldF' failed.
        </td>
    </tr>

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

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

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

<pre>
    I've seen a case where llvm-reduce crash like
```
llvm-reduce: ../tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp:64: void replaceFunctionCalls(llvm::Function *, llvm::Function *): Assertion `CI->getCalledFunction() == OldF' failed.
```
Unfortunately I don't have a reproducer I can share, but when I looked at the reduced result so far, I saw a call where parameters didn't match the declaration.
As discussed in
 https://reviews.llvm.org/D126689#4654119
opt/llc nowadays (with opaque pointers) doesn't instantly fail on llvm IR where actual and formal parameters in a call don't match.
So I guess it may now reduce in ways that it unexpected for it and then crash.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzkk8GOuzYQxp_GXEaLjJ2QcOBAN0XitNK2fYDBngR3jU1tkzRvX5kk7VZqn-AvcWHG_jzfb2YwRnNxRC3b_8T2pwLXNPnQzuYLyU7ezuSK0et7OzBxuBJEIgcICiPBbaJAYO11fgukV0WgAsYJrPkixk-Md6zmz2_7_XaUyQ7Kkok-eW8jE_33nOg12YQ5_LlFPhYK6HT81XfhEku1LEx29S6LXL3REGixqKhfnUrGu3e0WfOYNZnsmOxeGWCiY-Id_i_TZMkuRgqPWM3fhzcmf75QyqKkX8eZODLRAJMnJk_wYXXPxAHOaCzp8j_N_-bOPqTVYSJ7hwF0FjkkmPBKgNlC8NlrgAEUOogTBsq1jmvKqB0MYL3_Ig2YIE0ED1rZfVxtgujhjCHfGCDibeuStc8uLRhwpkQhgjb68fKMSU2bkiZlMWA29iy-y-eiWmMkDcY9gjCltMTMTfRM9IGuhm6xzDBLHy5M9KdK1PWxYULu6v2uqprHRb-krcUKnL-hxnsEJo43kybwC_6xEizeuFxdhqo9xUeFxsWELtn7Rha82xoHw-fTFaq0ogV0Gs4-zGi_-zTuheCFejP8NPiLhwEuK8UIJmfuubQn0nz1lotME6acXh39uZBKtL2TI_nJlJuyjXxZ6FbqRjZYUFvVzWEva76TxdSOTa3P9V7wgzhKVQld84qPpGu-15yEKEwruJAVrw682R2ELI-HStVnrPV43ilCznacZjT2b8yFiXGltm5kJQqLI9m4ba8Qjm6wJZkQeZlDu23VuF4i23FrYvqnWUUyyVL7o6xksQbb_nt8LyZN61gqPz-9viwvwf9OKk_sBjN73mD_FQAA__9u0azw">