[Mlir-commits] [mlir] [mlir][tensor] Enhance pack/unpack simplification for identity outer_dims_perm cases. (PR #77409)

lorenzo chelini llvmlistbot at llvm.org
Wed Jan 10 05:52:40 PST 2024


================
@@ -213,6 +213,14 @@ mlir::invertPermutationVector(ArrayRef<int64_t> permutation) {
   return inversion;
 }
 
+bool mlir::isIdentityPermutation(ArrayRef<int64_t> permutation) {
+  int n = permutation.size();
----------------
chelini wrote:

Let's use int64_t to keep the type consistent with the element types in permutation.

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


More information about the Mlir-commits mailing list