[all-commits] [llvm/llvm-project] acdba2: [DirectX] Set whole-module flags prior to evaluati...

Deric C. via All-commits all-commits at lists.llvm.org
Thu May 15 13:43:51 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: acdba28e148ac1e94d6c041f9911230e1e90e9cd
      https://github.com/llvm/llvm-project/commit/acdba28e148ac1e94d6c041f9911230e1e90e9cd
  Author: Deric C. <cheung.deric at gmail.com>
  Date:   2025-05-15 (Thu, 15 May 2025)

  Changed paths:
    M llvm/lib/Target/DirectX/DXILShaderFlags.cpp
    M llvm/lib/Target/DirectX/DXILShaderFlags.h
    M llvm/test/CodeGen/DirectX/ShaderFlags/disable-opt-cs.ll
    M llvm/test/CodeGen/DirectX/ShaderFlags/disable-opt-lib.ll
    M llvm/test/CodeGen/DirectX/ShaderFlags/max-64-uavs-array-valver1.5.ll
    M llvm/test/CodeGen/DirectX/ShaderFlags/max-64-uavs-array-valver1.6.ll
    M llvm/test/CodeGen/DirectX/ShaderFlags/max-64-uavs.ll
    M llvm/test/CodeGen/DirectX/ShaderFlags/res-may-not-alias-sm6.7.ll
    M llvm/test/CodeGen/DirectX/ShaderFlags/uavs-at-every-stage-lib-valver1.7.ll
    M llvm/test/CodeGen/DirectX/ShaderFlags/uavs-at-every-stage-vs.ll
    M llvm/test/CodeGen/DirectX/ShaderFlags/use-native-low-precision-1.ll

  Log Message:
  -----------
  [DirectX] Set whole-module flags prior to evaluating per-function flags (#139967)

Fixes #139024 and #139954

- Refactor DXILShaderFlags to compute the flags that apply to a whole
module before computing flags that apply individually to each function
- Make DXILResourceMap const, since it is not modified in
DXILShaderFlags
- Per-function shader flag analysis now initially starts with the set of
flags that apply to the whole module instead of starting from no flags.
This change fixes the above linked issues
- Fix shader flag tests affected by the above change



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