[Mlir-commits] [mlir] [mlir][gpu] Separate the barrier elimination code from transform ops (PR #71762)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Thu Nov 9 00:46:02 PST 2023
================
@@ -37,6 +37,20 @@ def GpuMapParallelLoopsPass
let dependentDialects = ["mlir::gpu::GPUDialect"];
}
+def GpuEliminateBarriers
+ : Pass<"gpu-eliminate-barriers", "mlir::func::FuncOp"> {
+ let summary = "Erase unecessary barriers";
+ let constructor = "mlir::createGpuEliminateBarriersPass()";
+ let description = [{
+ Erase barriers that are unneeded because there are no dependent side effects
+ across the barrier.
+ }];
+ let dependentDialects = [
+ "mlir::gpu::GPUDialect", "mlir::scf::SCFDialect",
----------------
ftynse wrote:
And one per line.
https://github.com/llvm/llvm-project/pull/71762
More information about the Mlir-commits
mailing list