[all-commits] [llvm/llvm-project] 9c6043: [NFC] Add a specialization of DenseMapInfo for Sma...

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Sat May 17 11:13:51 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c60431b673c478606e63ff1e47860eb4eb6af09
      https://github.com/llvm/llvm-project/commit/9c60431b673c478606e63ff1e47860eb4eb6af09
  Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
  Date:   2025-05-17 (Sat, 17 May 2025)

  Changed paths:
    M llvm/include/llvm/ADT/SmallVector.h
    M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
    M llvm/lib/Transforms/Vectorize/VPlanSLP.h

  Log Message:
  -----------
  [NFC] Add a specialization of DenseMapInfo for SmallVector (#140380)

Equivalent to the three existing uses I found which were all pointers.
Implementing the general pattern so SmallVector<int> etc will work as
well.

Added to the SmallVector.h header as opposed to DenseMapInfo.h following
the StringRef.h and SmallBitVector.h prior art.

Noticed while writing an unrelated patch which currently wants a map
from small vectors to other things and cleaner to generalise than add
another specialisation to said patch.



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