<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/108841>108841</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Copying a static value in an array with -Oz far from optimal size
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
RSilicon
</td>
</tr>
</table>
<pre>
https://godbolt.org/z/o6cf889oG
Even ignoring the fact GCC's code is smaller, there is an instruction that is not being used that can make this happen faster:
repstosd
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckdGOnCAUhp8Gb05mgqijc8HFdrbuZZP2CQCPSotgOMfZzDx9o7tJm72B5Ad-Pj4MkZ8iohbNN9G8FmbjOWX985cP3qVY2DQ89My8kqhehOqF6qc02BT4nPIkVP8Uqk8XN3bdNb0J-Srky8f4_Y4R_BRT9nECnhFG4xjebjehWgKXBgRPQIsJAbNQt31PPjITwUfivDn2KQLPhvc4JgaLe9tGOHzEzkRYzB8Enj3BbNYVI4yGGPMOfJBkXIkTDf_TFYOuhmt1NQXqslWXRkpZdsWsLUor7eCq1rW1Kq1zXVOOY1PLUZkGh8JrJVUtr-WlbJQsu3NlG3RtexnUpXZNZUUtcTE-nEO4L7ulwhNtqEvZdXVZBGMx0OFbqYjvcKwKpXb9We-HTnabSNQyeGL6V8OeA-pbWh-7AwPEhr2Duwkbgo-7NpOzecC75xlOP54wmgxjTguklf1iApB_YrHl8PVLPc-bPbu0CNXv931OpzWn3-hYqP6gJKH6z2fctfobAAD__1UAuQQ">