[all-commits] [llvm/llvm-project] ca27dc: [SPIR-V] Matrix in struct pointer legalization (#1...

Steven Perron via All-commits all-commits at lists.llvm.org
Tue Apr 28 06:37:17 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca27dc2933ed81835569d3e86c16935d850d38ff
      https://github.com/llvm/llvm-project/commit/ca27dc2933ed81835569d3e86c16935d850d38ff
  Author: Steven Perron <stevenperron at google.com>
  Date:   2026-04-28 (Tue, 28 Apr 2026)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVLegalizePointerCast.cpp
    A llvm/test/CodeGen/SPIRV/pointers/load-store-matrix-in-struct.ll

  Log Message:
  -----------
  [SPIR-V] Matrix in struct pointer legalization (#193073)

When looking to load an object at the start of a struct, the types do
not always match exactly. When we have an HLSL matrix the type in the
load will not match the type in memory. We need to improve the pointer
legalization pass to look for any "compatible" type at the start of an
aggragate.

A compatible are two types that the pass knows know to convert from one
to another.

This involves a refactoring of the code to make the check more general.

Assisted-by: Gemini


<!-- branch-stack-start -->

<!-- branch-stack-end -->



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