[Mlir-commits] [mlir] [MLIR][NFC] Add allow Insert/extract slice option to pack/unpack op (PR #117340)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Nov 25 06:49:10 PST 2024


================
@@ -295,7 +296,7 @@ FailureOr<LowerPackResult> linalg::lowerPack(RewriterBase &rewriter,
       llvm::interleaveComma(stripMinedShape, DBGS() << "stripMinedShape: ");
       DBGSNL(); DBGS() << "collapsed type: " << collapsed; DBGSNL(););
 
-  if (packOp.isLikePad()) {
+  if (allowInsertSliceLowering && packOp.isLikePad()) {
----------------
Max191 wrote:

Maybe something like `lowerPadLikeWithInsertSlice` and `lowerUnpadLikeWithExtractSlice`?

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


More information about the Mlir-commits mailing list