[Mlir-commits] [mlir] [mlir][vector] don't emit non-rank 1 masked load and store (PR #67656)

Nicolas Vasilache llvmlistbot at llvm.org
Thu Sep 28 03:00:25 PDT 2023


================
@@ -455,6 +455,11 @@ struct TransferReadToVectorLoadLowering
     // Create vector load op.
     Operation *loadOp;
     if (read.getMask()) {
+      if (read.getVectorType().getRank() != 1)
+        // vector.maskedload operates on 1-D vectors.
+        return rewriter.notifyMatchFailure(
+            read, "vector type is not rank 1, can't create masked load");
----------------
nicolasvasilache wrote:

suggest running vector-to-scf in the error message ?

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


More information about the Mlir-commits mailing list