[all-commits] [llvm/llvm-project] 4cee35: [HLSL] Fold inverse matrix transposes (#227049)

Farzon Lotfi via All-commits all-commits at lists.llvm.org
Tue Sep 29 13:21:30 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cee350d3ed7439c8237427e47ff8034f62198ff
      https://github.com/llvm/llvm-project/commit/4cee350d3ed7439c8237427e47ff8034f62198ff
  Author: Farzon Lotfi <farzonlotfi at microsoft.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M clang/lib/CodeGen/CGHLSLBuiltins.cpp
    M clang/test/CodeGenHLSL/builtins/transpose.hlsl
    M clang/test/CodeGenHLSL/matrix-layout-attr-overrides-default.hlsl

  Log Message:
  -----------
  [HLSL] Fold inverse matrix transposes (#227049)

When the operand is an unused llvm.matrix.transpose with inverse
dimensions, return its original operand and erase the redundant
intrinsic. This handles both explicit transpose(transpose(M))
expressions and transposes that cancel row-major load normalization.



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