[Mlir-commits] [mlir] [mlir][linalg][nfc] use `llvm::DenseMap` (PR #154981)
Elam Cohavi
llvmlistbot at llvm.org
Sun Aug 24 06:53:31 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:
That makes sense. I wonder in that case if the original intention to maintain a map is for cases such as:
`[1,2,4]`
.. where a dimension isn't present and you wouldn't be able to rely on the index being equivalent to the key.
https://github.com/llvm/llvm-project/pull/154981
More information about the Mlir-commits
mailing list