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

Matt Arsenault via All-commits all-commits at lists.llvm.org
Sun Aug 4 22:47:32 PDT 2024


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

  Changed paths:
    M llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
    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