[all-commits] [llvm/llvm-project] 469757: [AMDGPU] Handle memcpy()-like ops in LowerBufferFa...

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Wed Feb 26 14:03:54 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 469757efafebdd5772d993fca4dc0dfa7cbda17c
      https://github.com/llvm/llvm-project/commit/469757efafebdd5772d993fca4dc0dfa7cbda17c
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2025-02-26 (Wed, 26 Feb 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
    A llvm/test/CodeGen/AMDGPU/buffer-fat-pointers-memcpy.ll
    A llvm/test/CodeGen/AMDGPU/lower-buffer-fat-pointers-mem-transfer.ll

  Log Message:
  -----------
  [AMDGPU] Handle memcpy()-like ops in LowerBufferFatPointers (#126621)

Since LowerBufferFatPointers runs before PreISelIntrinsicLowering, which
normally handles unsupported memcpy()s,, and since you can't have a
`noalias {ptr addrspace(8), i32}` becasue it crashes later passes,
manually expand memcpy()s involving buffer fat pointers to loops.

Additionally, though they're unlikely to be used, this commit adds
support for memset().

This commit doesn't implement writing direct-to-LDS loads as the
intrinsics, but leaves the option in the future.



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