<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylksFunDAQhp_GXEaLwAZ2c-Cw6SpSpEqJ2tyrAQ_gxNgI27vat-9AVbXNtRLCg8f6_PnHndf39ltyzrgRphiXINRZyCd-RhNiPpo4pS7v_cwzznyYnseu6auaaiLsC0VDOehTJVWtTmXdU4cVxGn1aZxANIW1PRxeCq5gpZBsDGAcoANy0axk70DzEu8wJNdH452QX-A2GUtgIgh5DpNPVnMBE14JcGO-zwsEij9CxEiiKl6_vvFsLoqLKM6_3s8Rbn79CDAYR3DjU_gU2YtAd2N-RZto28mv__SYEtHYTRad84xnoxwYhjb4z8Rt-WHAEA8mkBXqsp0yz3Sr9IN6wAwTk9d2Ty1Lq20_5_tXtNZefw-HZfXv1Ef-NCEkClzUSlYqm1qFWh-3tEkqXcjyWJZaI9KxKSWWg8wsdmRDK-pHIaWjG-wIrkV9yf7fwLSykLIot42rUjU56eHY6WY4YT0UPQ38N2jmCPONk_t1zNZ2R3ZpDNy0fKnCnyaGYEZHtAuzYTTRUvvGAOjRWphNYLuFr4OG7g5PHPbzd7LZrtXuTj8BnxTldQ>53243</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Tail call miscompiled by FastISel
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nikic
</td>
</tr>
</table>
<pre>
Running https://gist.github.com/nikic/b6c45e5eeac03ef1fd842353815ceba4 through `llc -O0` results in an entirely empty function, while it *should* have a `jmp set_state@PLT`.
It works fine without the dbg.value, or without the `tail` annotation. It also works fine with `-fast-isel=0`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdUsGO2yAQ_Rp8GcWywTjJwYe00UorrbRVu_cKzGCzSyAykCh_37Grqu1KCB4z8ObN0-hoHsP3EoILE8w5XxMTJ8afaE0u5XpyeS66HuOFIsF9uJFO3Y-dRImoxkagba05dFxIcWjliFp1kOcllmkG1jfej7B7bQjBgqn4nMAFUAEwZLegfwBervkBtoQxuxgY_wr32XkEl4HxU5pj8YYAzOqGoFbO98sVEuafKauMrGu-vbxRtGbNmTWn3_tzhntcPhJYFxDu1EUsmXQhGD3VN-ULrpXi8l-OWLJyfhWrQohET4pqIDLlU_zMuD7fWZXyziX0TJzXLuvKDMIcxVFV2WWPwxsRwqi8h4tL5OOVejOgH_BEP59_oK_K4ofP1v_juve3P8fuusR3HDNdXUoFEwEpeCeqeZBojcFDZ01rOuyURal7KY9dr7nZC115pdGngckvjPOAd9goCDN5rtzAG86btt23bdeKvkZj99r09qCkbUa0ZDNeqJV61VHHZaqWYZOky5Qo6Wla0t-kSslNAXErR_yqkMvLsE1QtRUeNuG_APXy0Lw">