[all-commits] [llvm/llvm-project] 70d02a: [Attributor] Fix an issue that an access is skippe...

Shilei Tian via All-commits all-commits at lists.llvm.org
Sat Aug 3 20:40:30 PDT 2024


  Branch: refs/heads/users/shiltian/dont-skip-if-no-aa
  Home:   https://github.com/llvm/llvm-project
  Commit: 70d02a359aeaca0e7e9f305834f48311ef324781
      https://github.com/llvm/llvm-project/commit/70d02a359aeaca0e7e9f305834f48311ef324781
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2024-08-03 (Sat, 03 Aug 2024)

  Changed paths:
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp

  Log Message:
  -----------
  [Attributor] Fix an issue that an access is skipped by mistake

When we check if an access can be skipped, there is a case that an
inter-procedural interference access exists after a dominant write. Currently we
rely on `AAInterFnReachability` to tell if the access can be reachable. If it is
not, we can safely skip the access. However, it is based on an assumption that
the AA exists. It is possible that the AA doesn't exist. In this case, we can't
safely assume the acess can be skipped because we have to assume the access can
reach. This can happen when `AAInterFnReachability` is not in the allowed AA
list when creating the attributor, such as AMDGPUAttributor.



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