[all-commits] [llvm/llvm-project] 3a2f13: [HLSL] Extract matrix elementwise cast operands fr...

Farzon Lotfi via All-commits all-commits at lists.llvm.org
Tue Sep 29 16:56:56 PDT 2026


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

  Changed paths:
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/test/CodeGenHLSL/BasicFeatures/VectorElementwiseCast.hlsl

  Log Message:
  -----------
  [HLSL] Extract matrix elementwise cast operands from SSA (#227065)

Avoid materializing matrix operands in the hlsl.ewcast.src temporary
when performing matrix-to-vector elementwise casts. Extract each element
directly from the canonical matrix SSA value using its column-major
flattened index.

Factor vector result construction into a shared helper so aggregate and
matrix sources use the same conversion and insertion logic.

Update the matrix-to-vector CodeGen checks for both row-major and
column-major layouts.

Assisted by Copilot using GPT 5.6 Sol



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