[clang] [llvm] [NFC] Replace more DenseMaps with SmallDenseMaps (PR #111836)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 16 03:17:38 PDT 2024


================
@@ -268,7 +268,7 @@ struct UniqueVirtualMethod {
 /// subobject in which that virtual function occurs).
 class OverridingMethods {
   using ValuesT = SmallVector<UniqueVirtualMethod, 4>;
-  using MapType = llvm::MapVector<unsigned, ValuesT>;
+  using MapType = llvm::SmallMapVector<unsigned, ValuesT, 16>;
----------------
nikic wrote:

It looks like this is nested inside another MapVector. I'd drop this one if it doesn't have significant effect.

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


More information about the cfe-commits mailing list