[Mlir-commits] [mlir] [mlir][memref] Move dealloc for unused memref to after alloc (PR #227975)
Matthias Springer
llvmlistbot at llvm.org
Thu Oct 1 00:16:07 PDT 2026
https://github.com/matthias-springer commented:
A coding agent found that this pass now produces invalid IR for such a test case (dominance violation):
```mlir
func.func @foo(%d: !gpu.async.token) {
%a = gpu.alloc
%w = gpu.wait async [%d]
%done = gpu.dealloc async [%w] %a
gpu.wait %done
return
}
```
https://github.com/llvm/llvm-project/pull/227975
More information about the Mlir-commits
mailing list