[Mlir-commits] [mlir] [mlir][vector] Use notifyMatchFailure instead of assert in VectorLinearize (PR #93590)
Han-Chung Wang
llvmlistbot at llvm.org
Thu May 30 16:25:26 PDT 2024
================
@@ -265,10 +266,11 @@ struct LinearizeVectorShuffle final
matchAndRewrite(vector::ShuffleOp shuffleOp, OpAdaptor adaptor,
ConversionPatternRewriter &rewriter) const override {
Type dstType = getTypeConverter()->convertType(shuffleOp.getType());
- assert(!(shuffleOp.getV1VectorType().isScalable() ||
- shuffleOp.getV2VectorType().isScalable() ||
- cast<VectorType>(dstType).isScalable()) &&
- "scalable vectors are not supported.");
+ if (shuffleOp.getV1VectorType().isScalable() ||
----------------
hanhanW wrote:
+1 on test coverage.
https://github.com/llvm/llvm-project/pull/93590
More information about the Mlir-commits
mailing list