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

    <tr>
        <th>Summary</th>
        <td>
            Mitigate ConstantArrayType size increase
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            HLSL
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            llvm-beanz
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          llvm-beanz
      </td>
    </tr>
</table>

<pre>
    The changes in #79382, introduce an increase in the size of the `ConstantArrayType`, which can cascade and have an impact on overall compiler memory usage.

@zygoloid recommended an approach to preserve the memory size optimization:
https://github.com/llvm/llvm-project/pull/79382#discussion_r1522255802

We should implement that change then rebase #79382 on top of it once it is in.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUksGK2zAQhp9GvogN8siK1wcftltCD9tTF3osY2nWUpElI8kpydMXJQ576KlgkDDi459vfszZzYFoZOoLA_D-vDxNhOHKAJj62uBWbEzj5_9miuYyvlvi2mKYKXMXOAPZD_IZGLxyF0qKZtPEMXAXdCLMVB8VSzy7K_H4cbuzo3iNIRcM5SUlvLxfVmJHURl_rNOWawxcY9ZoKstwi-c7dFlRFx4Dj2dK6D3XcVmdp8QXWmK68C3jTAcmXurXietljj46wxPpuCwUDJkKwnVNEbXlJfI1UaZ0plu0HXNPuxa3uCsWFwOTlWhLWXO9wonBaXbFbtNBx4XBqXraj6c1xd-kC4PTunnP4LQrksZlveXsYviVWgUASj0LuKf9STzbuHlTp_S0UCi8WCy77Zou8ERTdfqwXk2UuFavrmrRVE9XN3NozCjNIAdsaGz7VkjVD6pv7Nh9AMmBOgFmUEpJFEpImLqPVvdHo_rGjSCgE7KV7QBK9Qc4HjUZMEorhQMOrBO0oPOHOu0hprlxOW80PqsWusbjRD7vtfr29uNtL9SjS9ucWSe8yyV_AoornsbvrrgZC_F_6nHfyKNUzZb8-N_LuIXMDE63nH8DAAD__0Fs_bI">