[all-commits] [llvm/llvm-project] 771d15: [SPIR-V] Preserve offset alignment in pointer cast...

Arseniy Obolenskiy via All-commits all-commits at lists.llvm.org
Wed Jul 15 01:00:08 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 771d152cd10a05a10023beb0ff289ea1180b1751
      https://github.com/llvm/llvm-project/commit/771d152cd10a05a10023beb0ff289ea1180b1751
  Author: Arseniy Obolenskiy <arseniy.obolenskiy at amd.com>
  Date:   2026-07-15 (Wed, 15 Jul 2026)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVLegalizePointerCast.cpp
    M llvm/test/CodeGen/SPIRV/passes/SPIRVLegalizePointerCast.ll

  Log Message:
  -----------
  [SPIR-V] Preserve offset alignment in pointer cast legalization (#209251)

Splitting a load/store into per-element accesses reused the original
alignment for every element, which could wrongly strengthen or discard
alignment

Compute each split access alignment via commonAlignment with its
DataLayout derived byte offset matching SPIRVLegalizerInfo.cpp



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