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

Shilei Tian via All-commits all-commits at lists.llvm.org
Wed Aug 28 22:02:40 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 572d2fd327b3a55fe57f712813321a3c40c895cd
      https://github.com/llvm/llvm-project/commit/572d2fd327b3a55fe57f712813321a3c40c895cd
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2024-08-29 (Thu, 29 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 (#106187)

The implementation of `AAPointerInfo::RangeList::set_difference` doesn't
consider the case where two ranges have the same offset but different
sizes.
This could cause `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.

Fixes: 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