Deric C. d47c126fbf
[DirectX] Lower llvm.lifetime.* intrinsics to stores when DXIL version is lower than 1.6 (#147432)
Fixes #147394

References DXC for the implementation logic:

d751c827ed/lib/HLSL/DxilPreparePasses.cpp (L693-L699)

If DXIL Version < 1.6 then replace lifetime intrinsics with stores

- For validator version >= 1.6, store an undef
- For validator version < 1.6, store zeros

else keep the lifetime intrinsics in the DXIL.

After this PR, the number of DML shaders failing validation due to
#146974 is reduced from 157 to 50.
2025-07-08 14:45:14 -07:00
..
2024-08-26 13:40:11 -04:00
2025-04-10 16:40:05 -04:00