[Mlir-commits] [mlir] [mlir][linalg] Enable scalable vectorization of linalg.unpack (PR #149293)
Andrzej Warzyński
llvmlistbot at llvm.org
Mon Jul 28 01:41:20 PDT 2025
================
@@ -2488,10 +2542,11 @@ vectorizeScalableVectorPrecondition(Operation *op,
auto linalgOp = dyn_cast<LinalgOp>(op);
- // Cond 1: There's been no need for scalable vectorisation of
- // non-linalg Ops so far
- if (!linalgOp)
- return failure();
+ // Cond 1: Reject Ops that don't implement the LinalgOp interface, with the
+ // exception of UnpackOp for which there is a dedicated hook.
+ if (!linalgOp) {
+ return isa<linalg::UnPackOp>(op) ? success() : failure();
+ }
----------------
banach-space wrote:
> Is the below form simpler to you?
Yes, thanks for the suggestion 🙏🏻
https://github.com/llvm/llvm-project/pull/149293
More information about the Mlir-commits
mailing list