[Mlir-commits] [mlir] [MLIR] Extend linalg.pack and linalg.unpack to accept memref (PR #167675)
Han-Chung Wang
llvmlistbot at llvm.org
Thu Jan 15 13:48:24 PST 2026
================
@@ -726,7 +736,10 @@ linalg::packTranspose(RewriterBase &rewriter, linalg::PackOp packOp,
}
// Step 4. Finally, replace packOp now that we don't need it anymore.
- rewriter.replaceOp(packOp, transposedPackOp->getResults());
+ if (packOp.getNumResults() != 0)
----------------
hanhanW wrote:
ditto: use `hasPureTensorSemantics`
https://github.com/llvm/llvm-project/pull/167675
More information about the Mlir-commits
mailing list