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

    <tr>
        <th>Summary</th>
        <td>
            [HLSL] Determine the minimal set of passes required to legalize HLSL for DirectX and SPIR-V when compiling with `-O0`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            HLSL,
            clang:HLSL:SPIRV,
            clang:HLSL:DX
      </td>
    </tr>

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

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

<pre>
    Once the `OptimizeNone` attribute is not interfering with the application of necessary optimization passes for legalization (#151564) we need to determine the minimal set of optimization passes required to legalize HLSL for DirectX/DXIL and SPIR-V to add to clang's BackendUtil when compiling with `-O0`.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUUk1vnDAU_DXm8rQrY2O8HDgkRaiRoqZq1ChXYx7g1tjUNlmlv76C3X4c2kg9Ib1h3ryZsYrRjA6xJuKWiCZTa5p8qO-0n7AP3mWd71_rB6cR0oRASvqwJDOb7_jBOyQlBZVSMN2aEEwE5xMYlzAMGIwb4WzStBPVslijVTLegR_AocYYVXgFf1l3QRYVI0YYfACLo7I_54SdCOO5yEVZEFbBGcEh9pA89JgwzMZd7puNM7OyEDFtMn9bHvDbasKFfBVBeH__eL_LNiagTs-Etc3z3T0o18Pjx7tPh6ftd9XvLG2VGwmTEW6V_oqu_5yMhfOEDrSfF2N_OSclPTxQUtJj1te8r3ilMqxzKXh14qeKZ1Mtu746aRz4IIaC605ySfNSUcF1hZIOmakZZYJKnueyKAQ_DjIXqFDLQspTwSkpKM7K2KO1L_PRhzEzMa5Y73HJzKoObdz7ZWzzSRgj7B1h7OKD3-xDfrP5fPoX2DxviGiyUG8yh24dIymoNTHF38LJJLs_pZ0lGmjeaud_CvmziTeTztZg6ymlJRJ-Q1hLWDuaNK3dUfuZsHa79fo5LMF_QZ0Ia_fEImHtNbSXmv0IAAD__5weA68">