[all-commits] [llvm/llvm-project] 833d24: [DenseMap] Canonicalize pointer hashes. NFC (#202226)

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Jun 7 13:00:00 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 833d2418ffe9647b8a88f774208ec20c68805f73
      https://github.com/llvm/llvm-project/commit/833d2418ffe9647b8a88f774208ec20c68805f73
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-06-07 (Sun, 07 Jun 2026)

  Changed paths:
    M llvm/include/llvm/ADT/ImmutableList.h
    M llvm/include/llvm/CodeGen/SelectionDAGNodes.h
    M llvm/include/llvm/IR/Attributes.h

  Log Message:
  -----------
  [DenseMap] Canonicalize pointer hashes. NFC (#202226)

`(p>>4)^(p>>9)` does not mix the high bits of the address. Pointers from
one allocator grown across multiple slabs whose low-bit windows overlap
map to the same narrow bucket range, an issue fixed by #197390.

Fix by delegating to the canonical pointer hash.



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