[Mlir-commits] [mlir] [mlir][Vector] Remove uses of vector.extractelement/vector.insertelement (PR #113827)

Jakub Kuderski llvmlistbot at llvm.org
Sun Oct 27 16:14:47 PDT 2024


================
@@ -1415,7 +1413,8 @@ vectorizeAsLinalgGeneric(RewriterBase &rewriter, VectorizationState &state,
     // 3.c. Not all ops support 0-d vectors, extract the scalar for now.
     // TODO: remove this.
     if (readType.getRank() == 0)
-      readValue = rewriter.create<vector::ExtractElementOp>(loc, readValue);
+      readValue = rewriter.create<vector::ExtractOp>(loc, readValue,
+                                                     SmallVector<int64_t>{});
----------------
kuhar wrote:

You should be able to pass an empty array ref here?

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


More information about the Mlir-commits mailing list