[Mlir-commits] [mlir] [mlir][tensor] Fold producer linalg transpose with consumer tensor pack (PR #75658)

Prathamesh Tagore llvmlistbot at llvm.org
Tue Dec 19 23:34:26 PST 2023


================
@@ -21,6 +21,57 @@ static bool areAllConstantIntValue(ArrayRef<OpFoldResult> ofrs, int64_t value) {
       ofrs, [&](OpFoldResult ofr) { return isConstantIntValue(ofr, value); });
 }
 
+/// Helper function to generate an equivalent permutation map for
+/// `linalg.transpose` and `tensor.pack` which will be used after their folding
+/// into a `tensor.pack`.
+static bool getRemappedPermutationForTransposeAndPack(
----------------
meshtag wrote:

Yes you are correct. 
I disregarded that while working on this PR. I have updated the diff to incorporate this. 

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


More information about the Mlir-commits mailing list