[Mlir-commits] [mlir] [mlir][vector] Account for vector.mask in transfer RAW/WAW checks (PR #228328)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat Oct 3 01:30:49 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())
----------------
Vaisman wrote:
Sounds good. Done in f946972: the comments now note that all-true masks are handled conservatively.
https://github.com/llvm/llvm-project/pull/228328
More information about the Mlir-commits
mailing list