[all-commits] [llvm/llvm-project] e48331: [SPIR-V] Fix legalization rewriting non-zero size ...

Arseniy Obolenskiy via All-commits all-commits at lists.llvm.org
Wed Sep 9 08:02:48 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e4833173af64d3262a70d518fde99f8ca46f6c1d
      https://github.com/llvm/llvm-project/commit/e4833173af64d3262a70d518fde99f8ca46f6c1d
  Author: Arseniy Obolenskiy <arseniy.obolenskiy at amd.com>
  Date:   2026-09-09 (Wed, 09 Sep 2026)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVLegalizeZeroSizeArrays.cpp
    M llvm/test/CodeGen/SPIRV/legalize-zero-size-arrays-struct.ll

  Log Message:
  -----------
  [SPIR-V] Fix legalization rewriting non-zero size arrays to pointers (#222276)

legalizeType checked `isa<ArrayType>` with no size guard

Use `shouldLegalizeInstType`, which already checks for zero size



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