<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/143182>143182</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
not all store instructions are converted in the compressed format
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
BaoshanPang
</td>
</tr>
</table>
<pre>
https://godbolt.org/z/9rsxqs9TM
`
foo:
lui a0, %hi(buf)
sb zero, %lo(buf)(a0)
addi a0, a0, %lo(buf)
sb zero, 9(a0)
sb zero, 10(a0)
sb zero, 11(a0)
sb zero, 5(a0)
sb zero, 6(a0)
sb zero, 7(a0)
sb zero, 8(a0)
li a1, 0
**sb a1, 1(a0)
sb a1, 2(a0)
sb a1, 3(a0)**
sb zero, 4(a0)
ret
`
Why only these three instructions are converted to compressed format?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMk81u2zAQhJ9mdSFiUKv_gw5KC90K9FCgZ_6sLBa0mJJU2uTpC9qKYySuYUIADzPzcXehFSGY_ULUQ_UI1ddMrHF2vn8ULsxi-S6WfSadfunnGJ8CFAPgCDjunZbOxp3ze8DxFXDsfPj7O3Q_vgEf0ldz4MPkXIrwgdnVsHQEB_zCAKvZALZynQC7pG8nyNP9St5tRuvejdim_GVAaG026Bl9mfg_-hrtoyfnl6ZPan4HorrueZPrOxDNHZ720mPNNpw8SfwiBjgADm_hk36ri5MDr03hJBVn6Ui-UWF55RlP8fyvAB9-zi_MLfaFxZkCsTh7ImaWEP2qonFLYMITU255Jh9Js-iYcocnTyGQZpPzBxGhGE-wTPeF7opOZNTnTdlhUXCss7lvZauaVskmn2Se1zXpqZJaCcG5VI1qMtMjx4rXvM5bXpT1TuBEHTW6rkWriqaGktNBGLuz9vmQdiAzIazU52WRt5hZIcmG40IhLvSHHVVATPvl-xR6kOs-QMmtCTG8Y6KJlvrFRSasZSE6f7N_s6RJfZ5Btnr7cWFNnFe5U-4AOKb3tuvhybtfpCLgeKwyAI5bG889_gsAAP__SNAh2A">