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

Lei Zhang llvmlistbot at llvm.org
Fri Nov 10 09:55:09 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);
----------------
antiagainst wrote:

Yeah this should happen earlier. If you want to abort, can call `cancelRootUpdate`.

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


More information about the Mlir-commits mailing list