[Mlir-commits] [mlir] [mlir][linalg][nfc] use `llvm::DenseMap` (PR #154981)

Mehdi Amini llvmlistbot at llvm.org
Fri Aug 22 10:49:38 PDT 2025


================
@@ -125,7 +124,7 @@ computeTransposeBroadcast(AffineMap &map) {
     // refering to d3, d4. Therefore, re-base the transpose dimensions so
     // that they start from d0.
     permutation.resize(minorSize);
-    std::map<int64_t, int64_t> minorMap;
+    llvm::DenseMap<int64_t, int64_t> minorMap;
----------------
joker-eph wrote:

Seems to me that this is all a map of positions right? So why can't we use a `SmallVector<int>` here?

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


More information about the Mlir-commits mailing list