[Mlir-commits] [mlir] [mlir][amdgpu] Fuse adjacent `MemoryCounterWaitOp` (PR #171148)

Jakub Kuderski llvmlistbot at llvm.org
Mon Dec 8 07:18:45 PST 2025


================
@@ -596,6 +596,49 @@ LogicalResult PermlaneSwapOp::verify() {
   return success();
 }
 
+//===----------------------------------------------------------------------===//
+// MemoryCounterWaitOp
+//===----------------------------------------------------------------------===//
+
+namespace {
+/// Fuse adjacent memory counter wait ops, taking the minimum value of the
+/// counters.
+struct FuseMemoryCounterWaitOp final : OpRewritePattern<MemoryCounterWaitOp> {
+  using OpRewritePattern::OpRewritePattern;
----------------
kuhar wrote:

```suggestion
  using Base::Base;
```

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


More information about the Mlir-commits mailing list