[Mlir-commits] [mlir] [mlir][vector] Prevent masked transfer read/write identity folding (PR #192966)
Kunwar Grover
llvmlistbot at llvm.org
Mon Apr 20 06:15:38 PDT 2026
================
@@ -5850,6 +5850,9 @@ static LogicalResult foldReadInitWrite(TransferWriteOp write,
// Bail on potential out-of-bounds accesses.
if (read.hasOutOfBoundsDim() || write.hasOutOfBoundsDim())
return failure();
+ // Masked transfers have padding/select semantics and are not identity folds.
+ if (read.getMask() || write.getMask())
+ return failure();
----------------
Groverkss wrote:
If the padding is poison this is okay. Can you add the case?
https://github.com/llvm/llvm-project/pull/192966
More information about the Mlir-commits
mailing list