[all-commits] [llvm/llvm-project] a78688: InferAddressSpaces: Improve handling of instructio...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Aug 5 14:15:12 PDT 2024


  Branch: refs/heads/users/arsenm/infer-address-spaces-improve-repeated-users
  Home:   https://github.com/llvm/llvm-project
  Commit: a78688a07857b9fbbafb80e54d1c8b7ef1a0d063
      https://github.com/llvm/llvm-project/commit/a78688a07857b9fbbafb80e54d1c8b7ef1a0d063
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-08-06 (Tue, 06 Aug 2024)

  Changed paths:
    A llvm/lib/Target/AMDGPU/.#AMDGPUTargetMachine.cpp
    A llvm/lib/Target/AMDGPU/.#AMDGPUTargetTransformInfo.cpp
    M llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/.#arm64-irtranslator.ll
    A llvm/test/CodeGen/AMDGPU/.#llvm.prefetch.ll
    A llvm/test/CodeGen/AMDGPU/.#promote-kernel-arguments.ll
    A llvm/test/Transforms/EarlyCSE/.#invariant.start.ll
    A llvm/test/Transforms/InferAddressSpaces/AMDGPU/.#basic.ll
    A llvm/test/Transforms/InferAddressSpaces/AMDGPU/.#bug-reduced.ll
    A llvm/test/Transforms/InferAddressSpaces/AMDGPU/.#invariant-start-end.ll
    A llvm/test/Transforms/InferAddressSpaces/AMDGPU/.#mem-intrinsics.ll
    A llvm/test/Transforms/InferAddressSpaces/AMDGPU/.#prefetch.ll
    A llvm/test/Transforms/InferAddressSpaces/AMDGPU/.#ptrmask.ll
    M llvm/test/Transforms/InferAddressSpaces/AMDGPU/store-pointer-to-self.ll

  Log Message:
  -----------
  InferAddressSpaces: Improve handling of instructions with multiple pointer uses

The use list iteration worked correctly for the load and store case. The atomic
instructions happen to have the pointer value as the last visited operand, but we
rejected the instruction as simple after the first encountered use.

Ignore the use list for the recognized load/store/atomic instructions, and just
try to directly replace the known pointer use.



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