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

Han-Chung Wang llvmlistbot at llvm.org
Wed Jun 5 09:53:10 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());
----------------
hanhanW wrote:

Sorry for the confusion, what I meant is `VectorType`. So it could either be 

```
VectorType dstType = getTypeConverter()->convertType(extractOp.getType());
```

or

```
auto dstType = cast<VectorType>(getTypeConverter()->convertType(extractOp.getType()));
```

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


More information about the Mlir-commits mailing list