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

Nicolas Vasilache llvmlistbot at llvm.org
Fri Oct 6 03:34:14 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();
----------------
nicolasvasilache wrote:

can we notify with a message here and below ?

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


More information about the Mlir-commits mailing list