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

    <tr>
        <th>Summary</th>
        <td>
            [HLSL] Consider setting OptimizeNone attribute on exported library function
        </td>
    </tr>

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

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

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

<pre>
    If optimization is disabled by specifying commandline flag `-O0`, consider the 
need and utility to set function attribute `OptimizeNone` on exported functions
of a library shader per [discussion here](https://github.com/llvm/llvm-project/pull/125937#discussion_r1945226556).
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUks1u2zoQhZ9mtBnEkEaibC20cGIY9wJBs-gDFPwZSQxoUiCppOrTF1LhxtuuuCD4zZnzUaZkR8_cg3gGcSnkkqcQezXJKM2nfF8LFcza_z9gmLO92V8y2-DRJjQ2SeXYoFoxzaztsFo_og63m_TGWc84ODkitOXTWwltCfSCOvhkDUfMEyOUZ89sUHqDS7bO5hVzwMQZh8XrfZDMOVq1ZN44b38i8LfgGdoSg0f-OYeY2fx9kaA8hwElOquijCumSW4DZ44I4tnYpJeUNvTEkUFcgE5TznOC-gx0BbqONk-LOuhwA7o693E_nuYY3llnoOu8OAd0rUh09RGo_qL-iFXXCKJWiBaoOxSmr01Xd7LgvjrWXV011akppr6TJ3EatDJU1ZUQxgytkkPZGaMGPhpT2J5KEiVVFVHTNc2BiTujNStRGz5qA03JN2ndYQt3CHEsbEoL9xW1p6otnFTs0u6VyPMn7rdAtGmO_b6RWsYETelsyukLk212-4f47_X7K4gLvtytJc55k_wo4kHRo497_XcvxRJd_89F75nTXvW-1EdPvwMAAP__CR7mdg">