[Mlir-commits] [mlir] [nlir][vector] Constrain `ContractionOpToMatmulOpLowering` (PR #102225)

Cullen Rhodes llvmlistbot at llvm.org
Wed Aug 7 00:33:33 PDT 2024


================
@@ -1302,13 +1304,18 @@ FailureOr<Value> ContractionOpToMatmulOpLowering::matchAndRewriteMaskableOp(
       !isReductionIterator(iteratorTypes[2]))
     return failure();
 
+  Type opResType = op.getType();
+  VectorType vecType = dyn_cast<VectorType>(opResType);
+  if (vecType && vecType.isScalable()) {
+    // This should be sufficient to reject all cases with scalable vectors.
----------------
c-rhodes wrote:

nit: is the ambiguity is necessary, surely this is sufficient to reject all cases with scalable vectors?

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


More information about the Mlir-commits mailing list