<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/137023>137023</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
inefficient rv32i multiply by 10 ?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
alex-s168
</td>
</tr>
</table>
<pre>
https://godbolt.org/z/Y4MzcY33n
the code generates a call to `__mulsi3`, which is definitely slower than `(x << 3) + (x << 1)`.
is there any specific reason for this?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxckc-OmzAQxp9muIwSmbGBcPAhm4pbH2BPK2OGMJWDI2ySZZ--Il2pVU8jzZ9Pv_k-l5JcZ2YL1RtUPwq35iku1gX-PKSyPhV9HDY75XxPoM9AHVB3jUMfQz7G5QrUfQF17-bnl3_XegZ1BnXOE6OPA-OVZ15c5oQOvQsBc0So1cfHbQ1JNNQK6ILPSfyEknDgUWbJHDZMIT55wTy5GV9rp08EfQF9QQ3UItAb_tssgVqo1fEPgCTMEy-Mbt4w3dnLKB4XdinOOMZdVxLorhisHlrduoJt2ZjK0KlRVTHZhvtat6NzygxDa5rGczPovvRlQ61pykIsKaqUIV025Ymq42DMWJux6j2xqnwFRvHNSTiG8LjtVhWS0sq21I0iXQTXc0gv14lmfuJrCkR7CIvdjw79ek1gVJCU01-ZLDmwlZnHUbzwnHF5aBK8rSHLPWzYb1gq3L9bl_B_dJKntT_6eAPqdsnvcrgv8Rf7DNS9QBJQ9036sPQ7AAD__2N7qdI">