[all-commits] [llvm/llvm-project] c3d13c: [AMDGPU] Use alloc size for array stride in LowerB...

Arseniy Obolenskiy via All-commits all-commits at lists.llvm.org
Tue Jun 9 02:07:47 PDT 2026


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

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
    M llvm/test/CodeGen/AMDGPU/lower-buffer-fat-pointers-contents-legalization.ll

  Log Message:
  -----------
  [AMDGPU] Use alloc size for array stride in LowerBufferFatPointers (#202530)

Array elements are laid out at multiples of getTypeAllocSize, not
getTypeStoreSize

LLVM memory model lays out array element `i` at `i * allocSize`
(reflected in `DataLayout::getTypeAllocSize`), apply it for fat pointers
to prevent miscompile



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