[all-commits] [llvm/llvm-project] 509034: [Attributor] Fix an issue that could potentially c...

Shilei Tian via All-commits all-commits at lists.llvm.org
Wed Aug 28 11:31:15 PDT 2024


  Branch: refs/heads/users/shiltian/out-of-sync
  Home:   https://github.com/llvm/llvm-project
  Commit: 50903413bda547c793e2fbc17bfd17af3103c67e
      https://github.com/llvm/llvm-project/commit/50903413bda547c793e2fbc17bfd17af3103c67e
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2024-08-28 (Wed, 28 Aug 2024)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/Attributor.h
    A llvm/test/CodeGen/AMDGPU/amdgpu-attributor-accesslist-offsetbins-out-of-sync.ll

  Log Message:
  -----------
  [Attributor] Fix an issue that could potentially cause `AccessList` and `OffsetBins` out of  sync

The implementation of `AAPointerInfo::RangeList::set_difference` doesn't
consider the case where two ranges have the same offset but different sizes.
This could causes `AccessList` and `OffsetBins` out of sync because a range has
been already updated in `AccessList` but missing in `ToRemove`.

I do have a reproducer but the reproducer itself is 248kb. `llvm-reduce` can't
further reduce it. Not sure how I can make a smaller reproducer.

Fix SWDEV-479757.



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