[Mlir-commits] [mlir] [mlir][vector] Account for vector.mask in transfer RAW/WAW checks (PR #228328)

Federico Bruzzone llvmlistbot at llvm.org
Fri Oct 2 02:13:42 PDT 2026


================
@@ -239,6 +239,10 @@ static bool isSplatWriteConsistentWithMaskedRead(vector::TransferWriteOp write,
 
 bool mlir::vector::checkSameValueRAW(vector::TransferWriteOp defWrite,
                                      vector::TransferReadOp read) {
+  // An enclosing vector.mask leaves some lanes unwritten or padded, so the
+  // read does not see the written vector as a whole.
+  if (defWrite.isMasked() || read.isMasked())
----------------
FedericoBruzzone wrote:

Does a read under an all-true `vector.mask` need to block too?

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


More information about the Mlir-commits mailing list