<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/118210>118210</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Loop storing byte value + byte undef isn't turned into a memset
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          clubby789
      </td>
    </tr>
</table>

<pre>
    Rust issue: https://github.com/rust-lang/rust/issues/101685
[Godbolt](https://llvm.godbolt.org/z/cEK7shrec)

This could be turned into a memset, but instead stays as a loop individually storing each byte.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8kc2q2zwQhq9G3gzHyCP_xAstku987qJdld6Afia2imIFj5SSXn1xklIOlK4kIeYdnvcxzGFeibToTqJ7r0zJS9q0i8Xa-3AYK5v8XX8tnCEwFxLqCEvOVxbqKHASOM0hL8XWLl0ETlvh_BbNOr_uAqfHGAucGtn0h07Io-hOn5K3KWbRvQs8fMyL8Xap5-d_nbY96afAyf3_eeBlIydw3DPk8dsSGFwq0YMlyGVbyUNYcwIDF7owZYH_gS0ZwsqZjAfO5s5gGAzElK4QVh9uwRcT4x04py2sM5BxC9h7prryWvlRjaYi3QxKya6XSlaLNqN3DvuhPY_ndqBBGuVsT4psrzo1-CpolNg2KJsGcWhkjZ1VztPQO9-2qjWilXQxIdYP2rTN1aMm3TQHbGQVjaXIDyeIK_14dY-4K9r0PvRmy8yilTFw5j8xOeRI-stO9xtoZ4GbiYVA4On5LKunMwReBQ75r91VZYv6H6b3ja_j7bql7-Q-yn6C3DT-CgAA__-yzMXu">