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

    <tr>
        <th>Summary</th>
        <td>
            Missed optimization when emulating variable length array in struct
        </td>
    </tr>

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

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

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

<pre>
    See the relevant code. Clang generates an additional `lea` instruction when the code does practically the same thing

https://godbolt.org/z/WxEGo9bY8
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckL2O3DAMhJ9GbogzZMm_hYpLNk6V6oogJWXzbAW0tJDk3ew9fWBfgAXSkAAHnCE_TMktnsiI5otoLgXueQ3RvNGd4uVOzBQLG-aHeSOCvBJEYrqhzzCFmUr4yugXWMhTxEwJ0APOs8sueGQQrWRC0UpwPuW4T8cc7iv50-uwgDlQgmvEKbsJmR-nknA74pxfhLwI-fpZ15yvSehXoUahxiXMNnAuQ1yEGj-EGn_--fY9DPZXX8xGz4MesCBTtUOr9VD1ulhN02OlpgZt1_a1rSrZN53t1bvWsutkjYUzSipdSakrXQ1alrJ_7xorVd1Nqq6sFLWkDR2XzLftyC5cSjuZtpfDUDBa4nTCVMrTHU5RKHWwjebYebH7kkQt2aWcni7ZZSbzw6VEM4Rrdpv7wCcu2nbG7PwCN4wOLRMw-SWvgDHiA5yHT8DFHtn8B8rldbflFDahxiPwX3u5xvCbpizUeJ6ZhBrPN_4GAAD__5XerwI">