[Mlir-commits] [mlir] [mlir][vector] Clarify the semantics of BroadcastOp (PR #101928)

Jakub Kuderski llvmlistbot at llvm.org
Tue Aug 6 07:35:44 PDT 2024


================
@@ -2391,12 +2391,28 @@ mlir::vector::isBroadcastableTo(Type srcType, VectorType dstVectorType,
   // (all leading dimensions are simply duplicated).
   int64_t lead = dstRank - srcRank;
   for (int64_t r = 0; r < srcRank; ++r) {
+    bool mismatch = false;
----------------
kuhar wrote:

Oh, I see what you mean now. I think having a comment with a similar explanation would help here.

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


More information about the Mlir-commits mailing list