[llvm] [Attributor][FIX] Track returned pointer offsets (PR #110534)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 11:44:37 PDT 2024
================
@@ -1495,16 +1477,16 @@ struct AAPointerInfoFloating : public AAPointerInfoImpl {
Size = AccessSize.getFixedValue();
// Make a strictly ascending list of offsets as required by addAccess()
- llvm::sort(Offsets);
- auto *Last = llvm::unique(Offsets);
- Offsets.erase(Last, Offsets.end());
+ SmallVector<int64_t> OffsetsSorted(Offsets.begin(), Offsets.end());
+ llvm::sort(OffsetsSorted);
----------------
shiltian wrote:
Why was the "removal of redundancy" part removed? You might be able to use `SmallVectorSet`?
https://github.com/llvm/llvm-project/pull/110534
More information about the llvm-commits
mailing list