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

Mehdi Amini llvmlistbot at llvm.org
Sun Aug 24 07:12:47 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:

Possibly, but we never iterate the map, so having unused entries does not matter I believe.

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


More information about the Mlir-commits mailing list