[all-commits] [llvm/llvm-project] 1cdcee: [HLSL][Matrix] Make matrix truncation respect defa...
Deric C. via All-commits
all-commits at lists.llvm.org
Fri Mar 6 14:17:04 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1cdcee267c8d03064b887488ed00d78c4775b365
https://github.com/llvm/llvm-project/commit/1cdcee267c8d03064b887488ed00d78c4775b365
Author: Deric C. <cheung.deric at gmail.com>
Date: 2026-03-06 (Fri, 06 Mar 2026)
Changed paths:
M clang/lib/CodeGen/CGExprScalar.cpp
M clang/test/CodeGenHLSL/BasicFeatures/MatrixExplicitTruncation.hlsl
M clang/test/CodeGenHLSL/BasicFeatures/MatrixImplicitTruncation.hlsl
Log Message:
-----------
[HLSL][Matrix] Make matrix truncation respect default matrix memory layout (#184280)
Fixes #183127 and #184371
This PR makes the matrix truncation cast implementation use the new
matrix flattened index helper functions introduced by #182904 so that it
reads elements from the source matrix using the default matrix memory
layout instead of always assuming column-major order.
This PR also fixes a bug where matrix truncation truncated the wrong
elements.
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