[llvm] [DirectX] Lower `llvm.lifetime.*` intrinsics to stores when DXIL version is lower than 1.6 (PR #147432)

Deric C. via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 8 09:50:46 PDT 2025


================
@@ -0,0 +1,30 @@
+; RUN: opt -S -passes='dxil-op-lower' -mtriple=dxil-pc-shadermodel6.3-library %s | FileCheck %s --check-prefixes=CHECK,CHECK-SM63
----------------
Icohedron wrote:

It's normal to have a validator version newer than the shader model or dxil version. The default validator version when you compile something with Clang is 1.8, and with DXC is 1.9.

Here is a SM 6.0 shader and you can see the dx.valver is set to 1.8/1.9 with Clang/DXC: https://godbolt.org/z/ohejaqzEe

https://github.com/llvm/llvm-project/pull/147432


More information about the llvm-commits mailing list