[Mlir-commits] [mlir] [mlir][vector] Constrain patterns: vector.contract -> vector.outerproduct (PR #68400)

Andrzej WarzyƄski llvmlistbot at llvm.org
Fri Oct 6 08:08:00 PDT 2023


================
@@ -980,9 +995,15 @@ FailureOr<Value> ContractionOpLowering::lowerParallel(PatternRewriter &rewriter,
         diag << "expected lhsIndex=" << lhsIndex << " and rhsIndex=" << rhsIndex
              << " to map to the same dimension";
       });
+    // Unrolling a scalable dimension would be incorrect - bail out.
+    if (lhsType.getScalableDims()[lhsIndex])
+      return failure();
----------------
banach-space wrote:

Yes, will do :)

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


More information about the Mlir-commits mailing list