[Mlir-commits] [mlir] [mlir][vector] Bugfix of linearize `vector.extract` (PR #106836)

Longsheng Mou llvmlistbot at llvm.org
Wed Sep 4 00:26:46 PDT 2024


================
@@ -337,6 +337,9 @@ struct LinearizeVectorExtract final
   matchAndRewrite(vector::ExtractOp extractOp, OpAdaptor adaptor,
                   ConversionPatternRewriter &rewriter) const override {
     Type dstTy = getTypeConverter()->convertType(extractOp.getType());
+    if (!dstTy)
+      return rewriter.notifyMatchFailure(extractOp, "expect vector type.");
----------------
CoTinker wrote:

Done

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


More information about the Mlir-commits mailing list