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

Elam Cohavi llvmlistbot at llvm.org
Sat Aug 23 21:08:43 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;
----------------
elamc-2 wrote:

`minorMap` maps transposed : sorted dimensions, so to construct `remappedResult` using `SmallVector<pair<int,int>>` might make more sense.

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


More information about the Mlir-commits mailing list