[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 06:58:33 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:

sounds good to me, thanks!

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


More information about the Mlir-commits mailing list