<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/81406>81406</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Inliner] Assertion "context instruction should be in the same function"' failed.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
llvm:transforms
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
JonPsson1
</td>
</tr>
</table>
<pre>
[tc_inliner.tar.gz](https://github.com/llvm/llvm-project/files/14231984/tc_inliner.tar.gz)
opt -mtriple=s390x-unknown-linux -mcpu=z13 tc_inliner.ll -o /dev/null -O3
InstructionSimplify.cpp:6969: Assertion "context instruction should be in the same function"' failed.
#18 0x000002aa073f818c llvm::simplifyInstruction
#23 0x000002aa0668a5ca llvm::InlinerPass::run
@aeubanks
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysUk1vnTAQ_DXLxXrIXvN54ECFkNJLI_UHVAbs99wYG_kjfcmvryBpQ9VTpXLA0q5ndnY8IgR9tVJ2UH6CcshEijfnu8_OPobgLMsmt7zszTh_09ZoK30ehc-vr1AOgM0txi0A7wFHwPGq4y1N-exWwNGY51_HZfPuu5wj4Ki0kQFwZAVy1jYF4Pg3NbZAB6D9299tkVzW6PVmJPAh8JbeL8k-WffDXoy26U4u67wl4MMr4-REZwy5OAI4LvIZcLRpL3zhZ_IHG6JPc9TOftXrZrR6yedtA95XbdUC7wnpQ5B-v0AAcXY2ynsk-gNHws0ls5BJEm1JvEkSxCqJSvZoAyJgTZTQRi75eTYgZw2hd7p_KAStuWpYM5PDOt4D78O7ppPM31jkZ2xVNaKcxQn78ObCowjhreCT_WN8QYVMk7BPgWRLx5eWtyKTHatpXRVVjZjduoVNvOVCLbWivOFTi1SoCgsh51nURZnpDikWFBljlDUF5kqVc9PUjayQKS45FFSuQpt8V5Y7f810CEl2DStolRkxSROO-CG-a49e2KCcX8PuXTlkvjtSNKVrgIIaHWL4YIs6miO_7_tCOfzfJ8uSN90_B_1Yck_6sefPAAAA__-s3hQn">