| Issue |
124796
|
| Summary |
[DirectX] Replace generation of metadata `dx.disable_optimizations` with entry function attribute
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
bharadwajy
|
`dx.disable_optimizations` that has been added to HLSL suppport in clang appears to be potentially unnecessary and not defined in [DXIL.rst](https://github.com/Microsoft/DirectXShaderCompiler/blob/main/docs/DXIL.rst). So, replace it by setting the function attribute `Attribute::OptimizeNone` on entry functions of the module to indicate presence of `-Od` flag on the commandline.
Implement this change and add necessary tests.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs