[all-commits] [llvm/llvm-project] c3c72c: [DirectX] Legalize `llvm.lifetime.*` intrinsics in...

Deric C. via All-commits all-commits at lists.llvm.org
Tue Jul 22 17:08:28 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c3c72c1de9aece0b98a6f1c62d3883dde1a50fcd
      https://github.com/llvm/llvm-project/commit/c3c72c1de9aece0b98a6f1c62d3883dde1a50fcd
  Author: Deric C. <cheung.deric at gmail.com>
  Date:   2025-07-22 (Tue, 22 Jul 2025)

  Changed paths:
    M llvm/lib/Target/DirectX/DXILShaderFlags.cpp
    M llvm/lib/Target/DirectX/DXILWriter/DXILWriterPass.cpp
    A llvm/test/CodeGen/DirectX/ShaderFlags/lifetimes-noint64op.ll
    M llvm/test/CodeGen/DirectX/legalize-lifetimes-valver-1.6.ll
    A llvm/test/tools/dxil-dis/lifetimes.ll

  Log Message:
  -----------
  [DirectX] Legalize `llvm.lifetime.*` intrinsics in EmbedDXILPass (#150100)

Fixes #147395

This PR:
- Excludes lifetime intrinsics from the Int64Ops shader flags analysis
to match DXC behavior and pass DXIL validation.
- Performs legalization of `llvm.lifetime.*` intrinsics in the
EmbedDXILPass just before invoking the DXILBitcodeWriter.
- After invoking the DXILBitcodeWriter, all lifetime intrinsics and
associated bitcasts are removed from the module to keep the Module
Verifier happy. This is fine since lifetime intrinsics are not needed by
any passes after the EmbedDXILPass.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list