[Mlir-commits] [mlir] [mlir][linalg] Hoist masked vector transfer pairs (PR #221481)

Andrzej WarzyƄski llvmlistbot at llvm.org
Wed Sep 16 05:56:31 PDT 2026


================
@@ -250,6 +267,16 @@ void mlir::linalg::hoistRedundantVectorTransfers(Operation *root,
       for (auto operand : transferRead.getOperands())
         if (!loop.isDefinedOutsideOfLoop(operand))
           return WalkResult::advance();
+      // A masked read is hoisted as its `vector.mask` op; its mask and passthru
----------------
banach-space wrote:

"its `vector.mask`"? This sounds a bit odd.

Did you mean that xfer_read is hoisted _together_ with `vector.mask` that wraps it?

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


More information about the Mlir-commits mailing list