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

Mehdi Amini llvmlistbot at llvm.org
Sun Aug 24 04:57:00 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:

I don’t quite follow: we have key-value pair, the natural translation when you have keys that are small integers is an array of values, I don’t see where the pair would come from (the position in the array is the key)

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


More information about the Mlir-commits mailing list