[Mlir-commits] [mlir] [mlir][GPU] Extend gpu.barrier with scope and named-barrier support (PR #195692)
Fabian Mora
llvmlistbot at llvm.org
Wed May 6 05:51:25 PDT 2026
================
@@ -670,6 +670,12 @@ class BarrierElimination final : public OpRewritePattern<BarrierOp> {
LDBG() << "checking the necessity of: " << barrier << " "
<< barrier.getLoc();
+ // Named barriers have precise arrival-count semantics; never eliminate.
+ if (barrier.getNamedBarrier()) {
+ LDBG() << "barrier is a named barrier, retain it\n";
----------------
fabianmcg wrote:
```suggestion
LDBG() << "barrier is a named barrier, retain it";
```
LDBG appends new lines automatically.
https://github.com/llvm/llvm-project/pull/195692
More information about the Mlir-commits
mailing list