[all-commits] [llvm/llvm-project] f1a2fd: [HLSL][Matrix] Make HLSLElementwiseCast respect ma...
Deric C. via All-commits
all-commits at lists.llvm.org
Mon Mar 9 11:11:02 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f1a2fd2abbd38f21687c1ac6f27ed61769ea55a4
https://github.com/llvm/llvm-project/commit/f1a2fd2abbd38f21687c1ac6f27ed61769ea55a4
Author: Deric C. <cheung.deric at gmail.com>
Date: 2026-03-09 (Mon, 09 Mar 2026)
Changed paths:
M clang/lib/CodeGen/CGExprScalar.cpp
M clang/test/CodeGenHLSL/BasicFeatures/MatrixElementTypeCast.hlsl
Log Message:
-----------
[HLSL][Matrix] Make HLSLElementwiseCast respect matrix memory layout (#184429)
Fixes #184379
Changes the implementation of HLSLElementwiseCast to respect matrix
memory layout.
The new implementation reads from the `LoadList` array in row-major
order as opposed to column-major in the old implementation, which makes
more sense because `LoadList` is always interpreted in row-major order
when read as a matrix.
The writes to the allocation `V` for the destination matrix now respects
the default matrix memory layout.
Assisted-by: claude-opus-4.6
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