[Mlir-commits] [mlir] [mlir][vector] Notify the rewriter when sinking out of warp ops (PR #71964)

Jakub Kuderski llvmlistbot at llvm.org
Fri Nov 10 09:41:32 PST 2023


================
@@ -894,6 +904,11 @@ struct WarpOpTransferRead : public OpRewritePattern<WarpExecuteOnLane0Op> {
       return failure();
 
     rewriter.replaceAllUsesWith(distributedVal, newRead);
+    if (hasMask) {
+      // Notify the rewriter that the warp op is changing.
+      rewriter.startRootUpdate(warpOp);
----------------
kuhar wrote:

Don't we have to do that before updating the op?

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


More information about the Mlir-commits mailing list