[Mlir-commits] [mlir] [mlir] Bump SmallVector sizes along hot paths (PR #188827)

Jakub Kuderski llvmlistbot at llvm.org
Thu Mar 26 12:48:24 PDT 2026


================
@@ -114,7 +114,9 @@ ValueBoundsConstraintSet::Variable::Variable(AffineMap map,
 
   // Turn all dims into symbols.
   Builder b(map.getContext());
-  SmallVector<AffineExpr> dimReplacements, symReplacements;
+  // Inline size chosen empirically based on compilation profiling.
+  // Profiled: 490K calls, avg=1.5+-0.6. N=8 covers >99% of cases inline.
----------------
kuhar wrote:

I double checked my data and it was supposed to be 4 but I bumped it to the next pow2 twice for some reason. Good catch.

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


More information about the Mlir-commits mailing list