[all-commits] [llvm/llvm-project] 4f59da: [HLSL][Matrix] EmitFromMemory when emitting load o...

Deric C. via All-commits all-commits at lists.llvm.org
Mon Feb 23 15:45:57 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f59da55d7103c0897d4faae3795067332cac061
      https://github.com/llvm/llvm-project/commit/4f59da55d7103c0897d4faae3795067332cac061
  Author: Deric C. <cheung.deric at gmail.com>
  Date:   2026-02-23 (Mon, 23 Feb 2026)

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

  Log Message:
  -----------
  [HLSL][Matrix] EmitFromMemory when emitting load of vector and matrix element LValues (#178315)

Fixes #177712

The MatrixElt and VectorElt cases of `EmitLoadOfLValue` did not convert
the scalar value from its load/store type into its primary IR type like
the other cases do, which caused issues with HLSL in particular which
requires bools to be converted to and from i32 and i1 forms for its
load/store and primary IR types respectively.

This PR fixes the issue by applying `EmitFromMemory` to the loaded
scalar.



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