[Mlir-commits] [mlir] [mlir][vector] Use notifyMatchFailure instead of assert in VectorLinearize (PR #93590)
Chao Chen
llvmlistbot at llvm.org
Fri Jun 7 08:50:31 PDT 2024
================
@@ -394,10 +401,12 @@ struct LinearizeVectorInsert final
LogicalResult
matchAndRewrite(vector::InsertOp insertOp, OpAdaptor adaptor,
ConversionPatternRewriter &rewriter) const override {
- Type dstTy = getTypeConverter()->convertType(insertOp.getDestVectorType());
- assert(!(insertOp.getDestVectorType().isScalable() ||
- cast<VectorType>(dstTy).isScalable()) &&
- "scalable vectors are not supported.");
+ VectorType dstTy = getTypeConverter()->convertType<VectorType>(
+ insertOp.getDestVectorType());
+ assert(dstTy && "vector type destination expected.");
----------------
chencha3 wrote:
Same comments as above regarding to assert.
https://github.com/llvm/llvm-project/pull/93590
More information about the Mlir-commits
mailing list