[all-commits] [llvm/llvm-project] fbfed6: InferAddressSpaces: Fix mishandling stores of poin...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Sun Aug 4 02:19:46 PDT 2024


  Branch: refs/heads/users/arsenm/infer-address-spaces-fix-mishandling-stores-of-pointer
  Home:   https://github.com/llvm/llvm-project
  Commit: fbfed6e29a99f2d0683339d06b5c50677e421d11
      https://github.com/llvm/llvm-project/commit/fbfed6e29a99f2d0683339d06b5c50677e421d11
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-08-04 (Sun, 04 Aug 2024)

  Changed paths:
    M llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
    A llvm/test/Transforms/InferAddressSpaces/AMDGPU/store-pointer-to-self.ll

  Log Message:
  -----------
  InferAddressSpaces: Fix mishandling stores of pointers to themselves

If a store was using the flat pointer also as the value operand, it would
incorrectly replace both operands with the non-flat pointer. This happened
to work correctly for atomics because they place the pointer operand first.

We could improve the handling of the multi-pointer operand cases, but I'll
leave that for a separate change.



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