[llvm] [ADT] Add roundUpNumBuckets to DenseMap (NFC) (PR #168301)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 16 17:49:04 PST 2025


================
@@ -556,7 +556,10 @@ class DenseMapBase : public DebugEpochBase {
     return llvm::make_range(getBuckets(), getBucketsEnd());
   }
 
-  void grow(unsigned AtLeast) { derived().grow(AtLeast); }
+  void grow(unsigned NumBuckets) {
----------------
s-barannikov wrote:

(minor nit) The *parameter* is not rounded yet so probably it should keep the original name or MinNumBuckets
If renaming it, might as well inline the rounded variable to avoid introducing a new one

https://github.com/llvm/llvm-project/pull/168301


More information about the llvm-commits mailing list