[Mlir-commits] [mlir] [mlir][gpu] Eliminate redundant gpu.barrier ops (PR #71575)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Nov 7 13:51:10 PST 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff c2ad9f8b607931430e86da7420493599c48e62a0 b81301e5da85cbd454d4c3110c654364a320befb -- mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp b/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
index 04687af8a437..7f5b70a4ff08 100644
--- a/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
+++ b/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
@@ -1146,7 +1146,8 @@ void ShuffleOp::build(OpBuilder &builder, OperationState &result, Value value,
 namespace {
 
 /// Remove gpu.barrier after gpu.barrier, the threads are already synchronized!
-LogicalResult foldRedundantGpuBarrierOps(BarrierOp op, PatternRewriter &rewriter) {
+LogicalResult foldRedundantGpuBarrierOps(BarrierOp op,
+                                         PatternRewriter &rewriter) {
   if (isa_and_nonnull<BarrierOp>(op->getNextNode())) {
     rewriter.eraseOp(op);
     return success();

``````````

</details>


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


More information about the Mlir-commits mailing list