[Mlir-commits] [mlir] [mlir][vector] Use notifyMatchFailure instead of assert in VectorLinearize (PR #93590)

Ivan Butygin llvmlistbot at llvm.org
Wed Jun 5 10:10:43 PDT 2024


================
@@ -152,9 +152,10 @@ struct LinearizeVectorExtractStridedSlice final
   matchAndRewrite(vector::ExtractStridedSliceOp extractOp, OpAdaptor adaptor,
                   ConversionPatternRewriter &rewriter) const override {
     Type dstType = getTypeConverter()->convertType(extractOp.getType());
----------------
Hardcode84 wrote:

you can actually do `getTypeConverter()->convertType<VectorType>(...)`. Also, it's better to check `convertType` result for null.

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


More information about the Mlir-commits mailing list