[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:39 PDT 2024


================
@@ -51,7 +51,7 @@ class ConstraintSystem {
 
   /// A map of variables (IR values) to their corresponding index in the
   /// constraint system.
-  DenseMap<Value *, unsigned> Value2Index;
+  SmallDenseMap<Value *, unsigned, 16> Value2Index;
----------------
nikic wrote:

I'd add a using/typedef for this one, especially as it needs to be synchronized with ConstraintElimination.

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


More information about the cfe-commits mailing list